Skip to content

Commit 8e97791

Browse files
author
Jason Yellick
committed
Rename orderer/config to orderer/localconfig
The orderer service has two different types of configuration, configuration which is local to the process (such as buffer sizes, and backing structures like ledger type and location) as well as global configuration which must be the same across nodes, such as the consensus type and batch size. Today, this information is all stored in one local config file (orderer.yaml) but this needs to change. As a first step to differentiate between config which is local and which is shared, this changeset renames the current yaml config mechanism to be localconfig with the expectation that a sharedconfig package will be created in the future. Change-Id: I72298554600d8dc0d0c441e47fe9ab9c801e6aab Signed-off-by: Jason Yellick <[email protected]>
1 parent 5f17fde commit 8e97791

22 files changed

+21
-20
lines changed

orderer/kafka/broadcast.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"time"
2323

2424
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
25-
"github.com/hyperledger/fabric/orderer/config"
25+
"github.com/hyperledger/fabric/orderer/localconfig"
2626
cb "github.com/hyperledger/fabric/protos/common"
2727
ab "github.com/hyperledger/fabric/protos/orderer"
2828

orderer/kafka/broadcast_mock_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ import (
2020
"fmt"
2121
"testing"
2222

23-
"github.com/golang/protobuf/proto"
2423
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
25-
"github.com/hyperledger/fabric/orderer/config"
24+
"github.com/hyperledger/fabric/orderer/localconfig"
2625
cb "github.com/hyperledger/fabric/protos/common"
26+
27+
"github.com/golang/protobuf/proto"
2728
)
2829

2930
func mockNewBroadcaster(t *testing.T, conf *config.TopLevel, seek int64, disk chan []byte) Broadcaster {

orderer/kafka/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121

2222
"github.com/Shopify/sarama"
23-
"github.com/hyperledger/fabric/orderer/config"
23+
"github.com/hyperledger/fabric/orderer/localconfig"
2424
)
2525

2626
// Broker allows the caller to get info on the orderer's stream

orderer/kafka/broker_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"testing"
2121

2222
"github.com/Shopify/sarama"
23-
"github.com/hyperledger/fabric/orderer/config"
23+
"github.com/hyperledger/fabric/orderer/localconfig"
2424
)
2525

2626
type mockBrockerImpl struct {

orderer/kafka/client_deliver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222

2323
"github.com/golang/protobuf/proto"
24-
"github.com/hyperledger/fabric/orderer/config"
24+
"github.com/hyperledger/fabric/orderer/localconfig"
2525
cb "github.com/hyperledger/fabric/protos/common"
2626
ab "github.com/hyperledger/fabric/protos/orderer"
2727
)

orderer/kafka/client_deliver_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package kafka
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/orderer/config"
22+
"github.com/hyperledger/fabric/orderer/localconfig"
2323
ab "github.com/hyperledger/fabric/protos/orderer"
2424
)
2525

orderer/kafka/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"time"
2121

2222
"github.com/Shopify/sarama"
23-
"github.com/hyperledger/fabric/orderer/config"
23+
"github.com/hyperledger/fabric/orderer/localconfig"
2424
)
2525

2626
var (

orderer/kafka/consumer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package kafka
1818

1919
import (
2020
"github.com/Shopify/sarama"
21-
"github.com/hyperledger/fabric/orderer/config"
21+
"github.com/hyperledger/fabric/orderer/localconfig"
2222
)
2323

2424
// Consumer allows the caller to receive a stream of messages from the orderer

orderer/kafka/consumer_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"strconv"
2222
"testing"
2323

24-
"github.com/hyperledger/fabric/orderer/config"
24+
"github.com/hyperledger/fabric/orderer/localconfig"
2525
cb "github.com/hyperledger/fabric/protos/common"
2626

2727
"github.com/Shopify/sarama"

orderer/kafka/deliver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package kafka
1919
import (
2020
"sync"
2121

22-
"github.com/hyperledger/fabric/orderer/config"
22+
"github.com/hyperledger/fabric/orderer/localconfig"
2323
ab "github.com/hyperledger/fabric/protos/orderer"
2424
)
2525

orderer/kafka/deliver_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package kafka
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/orderer/config"
22+
"github.com/hyperledger/fabric/orderer/localconfig"
2323
ab "github.com/hyperledger/fabric/protos/orderer"
2424
)
2525

orderer/kafka/orderer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package kafka
1818

1919
import (
20-
"github.com/hyperledger/fabric/orderer/config"
20+
"github.com/hyperledger/fabric/orderer/localconfig"
2121
ab "github.com/hyperledger/fabric/protos/orderer"
2222
)
2323

orderer/kafka/orderer_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package kafka
1919
import (
2020
"testing"
2121

22-
"github.com/hyperledger/fabric/orderer/config"
22+
"github.com/hyperledger/fabric/orderer/localconfig"
2323
cb "github.com/hyperledger/fabric/protos/common"
2424
ab "github.com/hyperledger/fabric/protos/orderer"
2525
"google.golang.org/grpc"

orderer/kafka/producer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"time"
2222

2323
"github.com/Shopify/sarama"
24-
"github.com/hyperledger/fabric/orderer/config"
24+
"github.com/hyperledger/fabric/orderer/localconfig"
2525
)
2626

2727
// Producer allows the caller to send blocks to the orderer

orderer/kafka/producer_mock_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222

2323
"github.com/Shopify/sarama/mocks"
24-
"github.com/hyperledger/fabric/orderer/config"
24+
"github.com/hyperledger/fabric/orderer/localconfig"
2525
)
2626

2727
type mockProducerImpl struct {

orderer/kafka/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package kafka
1818

1919
import (
2020
"github.com/Shopify/sarama"
21-
"github.com/hyperledger/fabric/orderer/config"
21+
"github.com/hyperledger/fabric/orderer/localconfig"
2222
)
2323

2424
const (
File renamed without changes.
File renamed without changes.
File renamed without changes.

orderer/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929

3030
"github.com/hyperledger/fabric/orderer/common/bootstrap"
3131
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
32-
"github.com/hyperledger/fabric/orderer/config"
3332
"github.com/hyperledger/fabric/orderer/kafka"
33+
"github.com/hyperledger/fabric/orderer/localconfig"
3434
"github.com/hyperledger/fabric/orderer/multichain"
3535
"github.com/hyperledger/fabric/orderer/rawledger"
3636
"github.com/hyperledger/fabric/orderer/rawledger/fileledger"

orderer/sample_clients/broadcast_timestamp/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
"github.com/golang/protobuf/proto"
2424
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
25-
"github.com/hyperledger/fabric/orderer/config"
25+
"github.com/hyperledger/fabric/orderer/localconfig"
2626
cb "github.com/hyperledger/fabric/protos/common"
2727
ab "github.com/hyperledger/fabric/protos/orderer"
2828
"golang.org/x/net/context"

orderer/sample_clients/deliver_stdout/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"fmt"
2121

2222
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
23-
"github.com/hyperledger/fabric/orderer/config"
23+
"github.com/hyperledger/fabric/orderer/localconfig"
2424
cb "github.com/hyperledger/fabric/protos/common"
2525
ab "github.com/hyperledger/fabric/protos/orderer"
2626
"golang.org/x/net/context"

0 commit comments

Comments
 (0)