Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/yahya/6851-refactoring-middlewar…
Browse files Browse the repository at this point in the history
…e' into yahya/6851-refactoring-middleware
  • Loading branch information
yhassanzadeh13 committed Aug 24, 2023
2 parents 701e14d + b59818f commit 5618fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/p2p/middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ func (m *Middleware) processMessage(scope network.IncomingMessageScope) {
// - the libP2P node fails to publish the message.
//
// All errors returned from this function can be considered benign.
// TODO: publish has made ready to be removed from middleware, and instead the libp2pNode.Publish should be used directly.
// TODO: DO NOT USE. Publish is ready to be removed from middleware. Use libp2pNode.Publish directly.
func (m *Middleware) Publish(msg network.OutgoingMessageScope) error {
return m.libP2PNode.Publish(m.ctx, msg)
}
Expand Down

0 comments on commit 5618fa1

Please sign in to comment.