mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
whisper/whisperv6/peer, whisper : fix quit goroutine leak
This commit is contained in:
parent
f7b29ec942
commit
bf3fc09c3e
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ func newPeer(host *Whisper, remote *p2p.Peer, rw p2p.MsgReadWriter) *Peer {
|
|||
trusted: false,
|
||||
powRequirement: 0.0,
|
||||
known: mapset.NewSet(),
|
||||
quit: make(chan struct{}),
|
||||
quit: make(chan struct{}, 1),
|
||||
bloomFilter: MakeFullNodeBloom(),
|
||||
fullNode: true,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ func New(cfg *Config) *Whisper {
|
|||
peers: make(map[*Peer]struct{}),
|
||||
messageQueue: make(chan *Envelope, messageQueueLimit),
|
||||
p2pMsgQueue: make(chan *Envelope, messageQueueLimit),
|
||||
quit: make(chan struct{}),
|
||||
quit: make(chan struct{}, 1),
|
||||
syncAllowance: DefaultSyncAllowance,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue