Commit 174c565e authored by Chen Shuaimin's avatar Chen Shuaimin

add ctx argument

parent 7f78b9ed
......@@ -46,7 +46,7 @@ func (dht *IpfsDHT) handlerForMsgType(t pb.Message_MessageType) dhtHandler {
func (dht *IpfsDHT) handleGetValue(ctx context.Context, p peer.ID, pmes *pb.Message) (_ *pb.Message, err error) {
ctx = log.Start(ctx, "handleGetValue")
log.LogKV("peer", p.Pretty())
log.LogKV(ctx, "peer", p.Pretty())
defer func() {
if err != nil {
log.SetErr(ctx, 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