From 4bbf980a4e210b38226a2d891b0a21db26284904 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Tue, 3 Aug 2021 14:50:10 +0700 Subject: [PATCH] move mocks to _test.go --- txpool/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txpool/fetch.go b/txpool/fetch.go index 00e94d45f..ef45197c0 100644 --- a/txpool/fetch.go +++ b/txpool/fetch.go @@ -219,7 +219,7 @@ func (f *Fetch) handleInboundMessage(req *sentry.InboundMessage, sentryClient se } } case sentry.MessageId_GET_POOLED_TRANSACTIONS_66, sentry.MessageId_GET_POOLED_TRANSACTIONS_65: - //TODO: handleInboundMessage is single-threaded - means it can accept as argument couple buffers (or analog of txParseContext). Protobuf encoding will copy data anyway. + //TODO: handleInboundMessage is single-threaded - means it can accept as argument couple buffers (or analog of txParseContext). Protobuf encoding will copy data anyway, but DirectClient doesn't var encodedRequest []byte messageId := sentry.MessageId_POOLED_TRANSACTIONS_66 if req.Id == sentry.MessageId_GET_POOLED_TRANSACTIONS_65 {