diff --git a/network/p2p/tracer/internal/rpc_sent_cache.go b/network/p2p/tracer/internal/rpc_sent_cache.go index 655ddf2179f..d1f5de9c294 100644 --- a/network/p2p/tracer/internal/rpc_sent_cache.go +++ b/network/p2p/tracer/internal/rpc_sent_cache.go @@ -1,8 +1,6 @@ package internal import ( - "fmt" - "github.com/rs/zerolog" "github.com/onflow/flow-go/model/flow" @@ -79,5 +77,5 @@ func (r *rpcSentCache) size() uint { // Returns: // - flow.Identifier: the entity ID. func (r *rpcSentCache) rpcSentEntityID(messageId string, controlMsgType p2pmsg.ControlMessageType) flow.Identifier { - return flow.MakeIDFromFingerPrint([]byte(fmt.Sprintf("%s%s", messageId, controlMsgType))) + return flow.MakeIDFromFingerPrint([]byte(messageId + string(controlMsgType))) }