From 487b4f24f32c6d8b5c277c0c3ac67a17edd3f698 Mon Sep 17 00:00:00 2001 From: Lucas Molas Date: Fri, 31 Jul 2020 09:59:56 -0300 Subject: [PATCH] review server --- chain/blocksync/server.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chain/blocksync/server.go b/chain/blocksync/server.go index e406067cc65..9aefbb64851 100644 --- a/chain/blocksync/server.go +++ b/chain/blocksync/server.go @@ -78,8 +78,7 @@ func (server *BlockSyncService) HandleStream(stream inet.Stream) { } // Validate and service the request. We return either a protocol -// response or an internal error. The protocol response may signal -// a protocol error itself (e.g., invalid request). +// response or an internal error. func (server *BlockSyncService) processRequest( ctx context.Context, req *Request, @@ -198,7 +197,7 @@ func collectChainSegment( return nil, xerrors.Errorf("gather messages failed: %w", err) } - // FIXME: Pass the response to the `gatherMessages` and set all this there. + // FIXME: Pass the response to `gatherMessages()` and set all this there. bst.Messages = &CompactedMessages{} bst.Messages.Bls = bmsgs bst.Messages.BlsIncludes = bmincl