Commit 3f382488 authored by Jeromy's avatar Jeromy

fix argument placement on log message

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 35d36b0e
...@@ -109,7 +109,7 @@ func (pm *WantManager) SendBlock(ctx context.Context, env *engine.Envelope) { ...@@ -109,7 +109,7 @@ func (pm *WantManager) SendBlock(ctx context.Context, env *engine.Envelope) {
msg := bsmsg.New(false) msg := bsmsg.New(false)
msg.AddBlock(env.Block) msg.AddBlock(env.Block)
log.Infof("Sending block %s to %s", env.Peer, env.Block) log.Infof("Sending block %s to %s", env.Block, env.Peer)
err := pm.network.SendMessage(ctx, env.Peer, msg) err := pm.network.SendMessage(ctx, env.Peer, msg)
if err != nil { if err != nil {
log.Infof("sendblock error: %s", err) log.Infof("sendblock error: %s", err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment