Skip to content

Commit a747232

Browse files
committed
[FAB-4744] Remove unused code from gossip/comm
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 <[email protected]>
1 parent 4dc0370 commit a747232

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

gossip/comm/comm_impl.go

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ type commImpl struct {
155155
subscriptions []chan proto.ReceivedMessage
156156
port int
157157
stopping int32
158-
skipHandshake bool
159158
}
160159

161160
func (c *commImpl) createConnection(endpoint string, expectedPKIID common.PKIidType) (*connection, error) {

gossip/comm/comm_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ func newCommInstance(port int, sec api.MessageCryptoService) (Comm, error) {
112112
}
113113

114114
type msgMutator func(*proto.SignedGossipMessage) *proto.SignedGossipMessage
115-
type msgConsumer func(*proto.SignedGossipMessage)
116115

117116
type tlsType int
118117

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

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

0 commit comments

Comments
 (0)