Commit 56726e02 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

use event logger here too?

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent aca2566d
......@@ -125,10 +125,10 @@ func (bs *bitswap) sendWantListTo(ctx context.Context, peers <-chan peer.Peer) e
message.AddWanted(wanted)
}
for peerToQuery := range peers {
log.Debugf("bitswap got peersToQuery: %s", peerToQuery)
log.Event(ctx, "PeerToQuery", peerToQuery)
go func(p peer.Peer) {
log.Debugf("bitswap dialing peer: %s", p)
log.Event(ctx, "DialPeer", p)
err := bs.sender.DialPeer(ctx, p)
if err != nil {
log.Errorf("Error sender.DialPeer(%s)", p)
......
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