Skip to content

Commit ec26cd8

Browse files
committed
goimports and govet fixes
Change-Id: Ia0dcd58b57be91f6dcd1117de7f903ed57922065 Signed-off-by: Yacov Manevich <yacovm@il.ibm.com>
1 parent 6f9b427 commit ec26cd8

File tree

13 files changed

+17
-21
lines changed

13 files changed

+17
-21
lines changed

consensus/executor/executor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/hyperledger/fabric/consensus/util/events"
2222
"github.com/hyperledger/fabric/core/peer/statetransfer"
2323
pb "github.com/hyperledger/fabric/protos"
24-
2524
"github.com/op/go-logging"
2625
)
2726

consensus/executor/executor_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ import (
2222
"testing"
2323

2424
"github.com/hyperledger/fabric/consensus/util/events"
25+
"github.com/op/go-logging"
2526

2627
pb "github.com/hyperledger/fabric/protos"
27-
28-
"github.com/op/go-logging"
2928
)
3029

3130
func init() {

consensus/pbft/batch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
"github.com/hyperledger/fabric/consensus"
2424
"github.com/hyperledger/fabric/consensus/util/events"
2525
pb "github.com/hyperledger/fabric/protos"
26+
"github.com/op/go-logging"
2627

2728
"github.com/golang/protobuf/proto"
2829
"github.com/golang/protobuf/ptypes/timestamp"
29-
"github.com/op/go-logging"
3030
"github.com/spf13/viper"
3131
)
3232

consensus/util/messagefan.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ package util
1919
import (
2020
"sync"
2121

22-
"github.com/op/go-logging"
23-
2422
pb "github.com/hyperledger/fabric/protos"
23+
"github.com/op/go-logging"
2524
)
2625

2726
var logger *logging.Logger // package-level logger

core/committer/noopssinglechain/committer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (r *deliverClient) readUntilClose() {
146146
if err = r.commit(txs); err != nil {
147147
fmt.Printf("Got error while committing(%s)\n", err)
148148
} else {
149-
fmt.Printf("Commit success, created a block!\n", err)
149+
fmt.Printf("Commit success, created a block!\n")
150150
}
151151

152152
r.unAcknowledged++

core/ledger/test/ledger_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import (
2222

2323
. "github.com/onsi/ginkgo"
2424
. "github.com/onsi/gomega"
25+
"github.com/op/go-logging"
2526

2627
"github.com/hyperledger/fabric/core/db"
2728
"github.com/hyperledger/fabric/core/ledger"
28-
"github.com/op/go-logging"
2929
"github.com/spf13/viper"
3030
)
3131

core/peer/statetransfer/statetransfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import (
2424
"time"
2525

2626
_ "github.com/hyperledger/fabric/core" // Logging format init
27+
"github.com/op/go-logging"
2728

2829
"github.com/hyperledger/fabric/core/ledger/statemgmt"
2930
"github.com/hyperledger/fabric/core/peer"
3031
pb "github.com/hyperledger/fabric/protos"
31-
"github.com/op/go-logging"
3232
"github.com/spf13/viper"
3333
)
3434

core/peer/statetransfer/statetransfer_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
configSetup "github.com/hyperledger/fabric/core/config"
2929
"github.com/hyperledger/fabric/core/peer"
3030
"github.com/hyperledger/fabric/protos"
31-
3231
"github.com/op/go-logging"
3332
)
3433

membersrvc/ca/ecap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ import (
2929
"time"
3030

3131
"github.com/hyperledger/fabric/core/crypto/primitives/ecies"
32+
"github.com/op/go-logging"
3233

3334
"github.com/golang/protobuf/proto"
3435
"github.com/golang/protobuf/ptypes/timestamp"
3536
"github.com/hyperledger/fabric/core/crypto/primitives"
3637
pb "github.com/hyperledger/fabric/membersrvc/protos"
37-
"github.com/op/go-logging"
3838
"github.com/spf13/viper"
3939
"golang.org/x/net/context"
4040
)

orderer/sample_clients/broadcast_timestamp/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func newBroadcastClient(client ab.AtomicBroadcast_BroadcastClient) *broadcastCli
3636
}
3737

3838
func (s *broadcastClient) broadcast(transaction []byte) error {
39-
return s.client.Send(&ab.BroadcastMessage{transaction})
39+
return s.client.Send(&ab.BroadcastMessage{Data: transaction})
4040
}
4141

4242
func main() {

0 commit comments

Comments
 (0)