Commit 25cc9c3 1 parent dbc62f8 commit 25cc9c3 Copy full SHA for 25cc9c3
File tree 5 files changed +0
-38
lines changed
5 files changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ type gossipDiscoveryImpl struct {
82
82
83
83
msgStore * aliveMsgStore
84
84
85
- bootstrapPeers []string
86
-
87
85
comm CommService
88
86
crypt CryptoService
89
87
lock * sync.RWMutex
Original file line number Diff line number Diff line change @@ -66,14 +66,6 @@ type dummyCommModule struct {
66
66
mock * mock.Mock
67
67
}
68
68
69
- type gossipMsg struct {
70
- * proto.GossipMessage
71
- }
72
-
73
- func (m * gossipMsg ) GetGossipMessage () * proto.GossipMessage {
74
- return m .GossipMessage
75
- }
76
-
77
69
type gossipInstance struct {
78
70
comm * dummyCommModule
79
71
Discovery
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
24
24
"testing"
25
25
"time"
26
26
27
- "github.com/hyperledger/fabric/gossip/api"
28
27
"github.com/hyperledger/fabric/gossip/common"
29
28
"github.com/hyperledger/fabric/gossip/discovery"
30
29
"github.com/hyperledger/fabric/gossip/util"
@@ -165,26 +164,6 @@ func TestAdapterImpl_Gossip(t *testing.T) {
165
164
166
165
}
167
166
168
- type mockMsgCrypto struct {
169
- }
170
-
171
- // Sign signs a message, returns a signed message on success
172
- // or an error on failure
173
- func (is * mockMsgCrypto ) Sign (msg []byte ) ([]byte , error ) {
174
- return msg , nil
175
- }
176
-
177
- // Verify verifies a signed message
178
- func (is * mockMsgCrypto ) Verify (vkID , signature , message []byte ) error {
179
- return nil
180
- }
181
-
182
- // Get returns the identity of a given pkiID, or error if such an identity
183
- // isn't found
184
- func (is * mockMsgCrypto ) Get (pkiID common.PKIidType ) (api.PeerIdentityType , error ) {
185
- return nil , nil
186
- }
187
-
188
167
type mockAcceptor struct {
189
168
ch chan * proto.GossipMessage
190
169
acceptor common.MessageAcceptor
Original file line number Diff line number Diff line change @@ -95,8 +95,6 @@ type GossipStateProviderImpl struct {
95
95
96
96
commChan <- chan proto.ReceivedMessage
97
97
98
- mutex sync.RWMutex
99
-
100
98
// Queue of payloads which wasn't acquired yet
101
99
payloads PayloadsBuffer
102
100
Original file line number Diff line number Diff line change @@ -128,11 +128,6 @@ func (s *Set) Remove(item interface{}) {
128
128
delete (s .items , item )
129
129
}
130
130
131
- type goroutine struct {
132
- id int64
133
- Stack []string
134
- }
135
-
136
131
// PrintStackTrace prints to stdout
137
132
// all goroutines
138
133
func PrintStackTrace () {
You can’t perform that action at this time.
0 commit comments