From 348b34c4c41e32c571998e7da78007d98c041328 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 31 Jan 2022 15:13:43 +1100 Subject: [PATCH] chore: remove GraphSyncMessage#Loggable Ref: https://github.com/ipfs/go-graphsync/pull/332#discussion_r792169770 --- message/message.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/message/message.go b/message/message.go index 3247b8ca..f88d335b 100644 --- a/message/message.go +++ b/message/message.go @@ -216,21 +216,6 @@ func (gsm GraphSyncMessage) Blocks() []blocks.Block { return bs } -func (gsm GraphSyncMessage) Loggable() map[string]interface{} { - requests := make([]string, 0, len(gsm.requests)) - for _, request := range gsm.requests { - requests = append(requests, request.id.String()) - } - responses := make([]string, 0, len(gsm.responses)) - for _, response := range gsm.responses { - responses = append(responses, response.requestID.String()) - } - return map[string]interface{}{ - "requests": requests, - "responses": responses, - } -} - // Clone returns a shallow copy of this GraphSyncMessage func (gsm GraphSyncMessage) Clone() GraphSyncMessage { requests := make(map[graphsync.RequestID]GraphSyncRequest, len(gsm.requests))