From 7ce52ed1af3013939f65753a219d87830f5b69be Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Mon, 12 Oct 2020 14:26:15 -0400 Subject: [PATCH] cleanup protocol messenger --- wire/messages.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire/messages.go b/wire/messages.go index d17080063..16e930c31 100644 --- a/wire/messages.go +++ b/wire/messages.go @@ -25,8 +25,8 @@ var logger = logging.Logger("dht") // This decouples the wire protocol format from both the DHT protocol implementation and from the implementation of the // routing.Routing interface. // -// TODO: This is still strongly coupled with the existing implementation of what happens when a peer actually sends a -// message on the wire (e.g. reusing streams, reusing connections, metrics tracking, etc.). +// Note: the ProtocolMessenger's MessageSender still needs to deal with some wire protocol details such as using +// varint-delineated protobufs type ProtocolMessenger struct { m MessageSender validator record.Validator