move mocks to _test.go

This commit is contained in:
alex.sharov 2021-08-03 14:50:10 +07:00
parent 2cdedca2ef
commit 4bbf980a4e

View File

@ -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 {