review server
This commit is contained in:
parent
755772e12d
commit
fc32410e5b
@ -78,8 +78,7 @@ func (server *BlockSyncService) HandleStream(stream inet.Stream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate and service the request. We return either a protocol
|
// Validate and service the request. We return either a protocol
|
||||||
// response or an internal error. The protocol response may signal
|
// response or an internal error.
|
||||||
// a protocol error itself (e.g., invalid request).
|
|
||||||
func (server *BlockSyncService) processRequest(
|
func (server *BlockSyncService) processRequest(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *Request,
|
req *Request,
|
||||||
@ -198,7 +197,7 @@ func collectChainSegment(
|
|||||||
return nil, xerrors.Errorf("gather messages failed: %w", err)
|
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 = &CompactedMessages{}
|
||||||
bst.Messages.Bls = bmsgs
|
bst.Messages.Bls = bmsgs
|
||||||
bst.Messages.BlsIncludes = bmincl
|
bst.Messages.BlsIncludes = bmincl
|
||||||
|
Loading…
Reference in New Issue
Block a user