Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yhassanzadeh13 committed Jul 6, 2024
1 parent 00fc286 commit 2d4d97a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -1996,12 +1996,15 @@ func (gs *GossipSubRouter) WithDefaultTagTracer() Option {
// SendControl dispatches the given set of control messages to the given peer.
// The control messages are sent as a single RPC, with the given (optional) messages.
// Args:
// p: the peer to send the control messages to.
// ctl: the control messages to send.
// msgs: the messages to send in the same RPC (optional).
// The control messages are piggybacked on the messages.
//
// p: the peer to send the control messages to.
// ctl: the control messages to send.
// msgs: the messages to send in the same RPC (optional).
// The control messages are piggybacked on the messages.
//
// Returns:
// nothing.
//
// nothing.
func (gs *GossipSubRouter) SendControl(p peer.ID, ctl *pb.ControlMessage, msgs ...*pb.Message) {
out := rpcWithControl(msgs, ctl.Ihave, ctl.Iwant, ctl.Graft, ctl.Prune)
gs.sendRPC(p, out)
Expand Down

0 comments on commit 2d4d97a

Please sign in to comment.