Skip to content

Commit

Permalink
Update docs and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Jun 5, 2024
1 parent 9156eec commit 0f44dbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Empty file.
5 changes: 1 addition & 4 deletions p2p/switch.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,7 @@ func (sw *Switch) OnStop() {
// Peers

// BroadcastEnvelope runs a go routine for each attempted send, which will block trying
// to send for defaultSendTimeoutSeconds. Returns a channel which receives
// success values for each attempted send (false if times out). Channel will be
// closed once msg bytes are sent to all peers (or time out).
// BroadcastEnvelopes sends to the peers using the SendEnvelope method.
// to send for defaultSendTimeoutSeconds.
//
// NOTE: BroadcastEnvelope uses goroutines, so order of broadcast may not be preserved.
func (sw *Switch) BroadcastEnvelope(e Envelope) {
Expand Down

0 comments on commit 0f44dbf

Please sign in to comment.