Skip to content

Commit

Permalink
Remove concurrency as its now net negative
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Aug 19, 2024
1 parent 7ddb89a commit 035450f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ func (sw *Switch) TryBroadcast(e Envelope) {
}
peers := sw.peers.List()
for _, peer := range peers {
go func(p Peer) {
p.TrySendMarshalled(marshalledEnvelope)
}(peer)
peer.TrySendMarshalled(marshalledEnvelope)
}

}
Expand Down

0 comments on commit 035450f

Please sign in to comment.