mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
p2p: fix switch test for Broadcast returning success channel
This commit is contained in:
@@ -166,7 +166,7 @@ func (sw *Switch) IsDialing(addr *NetAddress) bool {
|
||||
// which receives success values for each attempted send (false if times out)
|
||||
func (sw *Switch) Broadcast(chId byte, msg interface{}) chan bool {
|
||||
if atomic.LoadUint32(&sw.stopped) == 1 {
|
||||
return
|
||||
return nil
|
||||
}
|
||||
successChan := make(chan bool, len(sw.peers.List()))
|
||||
log.Debug("Broadcast", "channel", chId, "msg", msg)
|
||||
|
Reference in New Issue
Block a user