Correct bugs in new sync threading

This commit is contained in:
Age Manning
2019-09-07 09:31:05 +10:00
parent 812e1fbe26
commit 04b47a357b
5 changed files with 17 additions and 27 deletions

View File

@@ -352,7 +352,7 @@ impl<T: BeaconChainTypes> MessageProcessor<T> {
"count" => beacon_blocks.len(),
);
self.send_to_sync(SyncMessage::RecentBeaconBlocksResponse {
self.send_to_sync(SyncMessage::BeaconBlocksResponse {
peer_id,
request_id,
beacon_blocks,
@@ -368,12 +368,12 @@ impl<T: BeaconChainTypes> MessageProcessor<T> {
) {
debug!(
self.log,
"BeaconBlocksResponse";
"RecentBeaconBlocksResponse";
"peer" => format!("{:?}", peer_id),
"count" => beacon_blocks.len(),
);
self.send_to_sync(SyncMessage::BeaconBlocksResponse {
self.send_to_sync(SyncMessage::RecentBeaconBlocksResponse {
peer_id,
request_id,
beacon_blocks,