Skip to content

Commit

Permalink
[FAB-4744] Remove unused code from gossip/comm
Browse files Browse the repository at this point in the history
There are few variables and unused values in gosisp communication module
which could be cleaned up, this commit takes care to remove them.

Change-Id: Ibedcfce97ac480afbdb465969ce99c1d3b60559a
Signed-off-by: Artem Barger <bartem@il.ibm.com>
  • Loading branch information
C0rWin committed Jun 15, 2017
1 parent 4dc0370 commit a747232
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion gossip/comm/comm_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ type commImpl struct {
subscriptions []chan proto.ReceivedMessage
port int
stopping int32
skipHandshake bool
}

func (c *commImpl) createConnection(endpoint string, expectedPKIID common.PKIidType) (*connection, error) {
Expand Down
2 changes: 1 addition & 1 deletion gossip/comm/comm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func newCommInstance(port int, sec api.MessageCryptoService) (Comm, error) {
}

type msgMutator func(*proto.SignedGossipMessage) *proto.SignedGossipMessage
type msgConsumer func(*proto.SignedGossipMessage)

type tlsType int

Expand Down Expand Up @@ -221,6 +220,7 @@ func TestHandshake(t *testing.T) {

// Positive path 1 - check authentication without TLS
ll, err := net.Listen("tcp", fmt.Sprintf("%s:%d", "", 9611))
assert.NoError(t, err)
s := grpc.NewServer()
go s.Serve(ll)

Expand Down

0 comments on commit a747232

Please sign in to comment.