Skip to content

Commit

Permalink
chore: remove GraphSyncMessage#Loggable
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 31, 2022
1 parent e997ff3 commit 4e57d92
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4e57d92

Please sign in to comment.