diff --git a/gossipsub.go b/gossipsub.go index d430b7bf..36b1a8ca 100644 --- a/gossipsub.go +++ b/gossipsub.go @@ -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)