Skip to content

Commit

Permalink
Move orderer common components to common dir
Browse files Browse the repository at this point in the history
As the complexity in the orderer grows, there is an increasing need to
add new component directories, which do not actually correspond to
different ordering services.

This can be seen with the bootstrap, cauthdsl, and broadcastfilter
directories, and more are on the way.

This changeset simply creates a new common directory, and moves the
common components there.  It also makes trivial updates to import paths,
but otherwise introduces no new features, so does not require new tests.

https://jira.hyperledger.org/browse/FAB-706

Change-Id: I61e803aa4454926b4ad26610680eb543554346b8
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
  • Loading branch information
Jason Yellick committed Oct 24, 2016
1 parent f1a3675 commit 053980b
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package static

import (
ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap"
"github.com/hyperledger/fabric/orderer/common/bootstrap"
)

type bootstrapper struct{}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions orderer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"os/signal"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap"
"github.com/hyperledger/fabric/orderer/bootstrap/static"
"github.com/hyperledger/fabric/orderer/common/bootstrap"
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
"github.com/hyperledger/fabric/orderer/config"
"github.com/hyperledger/fabric/orderer/kafka"
"github.com/hyperledger/fabric/orderer/rawledger"
Expand Down
2 changes: 1 addition & 1 deletion orderer/rawledger/fileledger/fileledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"testing"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap/static"
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
)

var genesisBlock *ab.Block
Expand Down
2 changes: 1 addition & 1 deletion orderer/rawledger/fileledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap/static"
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
. "github.com/hyperledger/fabric/orderer/rawledger"
"github.com/hyperledger/fabric/orderer/rawledger/fileledger"
)
Expand Down
2 changes: 1 addition & 1 deletion orderer/rawledger/ramledger/ramledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap/static"
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
)

var genesisBlock *ab.Block
Expand Down
2 changes: 1 addition & 1 deletion orderer/solo/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"time"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/broadcastfilter"
"github.com/hyperledger/fabric/orderer/common/broadcastfilter"
"github.com/hyperledger/fabric/orderer/rawledger"
)

Expand Down
2 changes: 1 addition & 1 deletion orderer/solo/broadcast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"google.golang.org/grpc"

ab "github.com/hyperledger/fabric/orderer/atomicbroadcast"
"github.com/hyperledger/fabric/orderer/bootstrap/static"
"github.com/hyperledger/fabric/orderer/common/bootstrap/static"
"github.com/hyperledger/fabric/orderer/rawledger"
"github.com/hyperledger/fabric/orderer/rawledger/ramledger"
)
Expand Down

0 comments on commit 053980b

Please sign in to comment.