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 <jyellick@us.ibm.com>
1 parent 5f17fde commit 8e97791

22 files changed

+21
-20
lines changed

orderer/kafka/broadcast.go

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)