Skip to content

Commit

Permalink
comment appned entries (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk authored May 24, 2024
1 parent 2c0fde1 commit ab0b37b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/eth/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ impl Consensus {

//TODO use gRPC instead of jsonrpc
//FIXME for now, this has no colateral efects, but it will have in the future
match Self::append_entries_to_followers(vec![Entry { index: 0, data: data.clone() }], followers.clone()).await {
Ok(_) => {
tracing::info!("Data sent to followers: {}", data);
}
Err(e) => {
//TODO rediscover followers on comunication error
tracing::error!("Failed to send data to followers: {}", e);
}
}
//XXX match Self::append_entries_to_followers(vec![Entry { index: 0, data: data.clone() }], followers.clone()).await {
//XXX Ok(_) => {
//XXX tracing::info!("Data sent to followers: {}", data);
//XXX }
//XXX Err(e) => {
//XXX //TODO rediscover followers on comunication error
//XXX tracing::error!("Failed to send data to followers: {}", e);
//XXX }
//XXX }
}
}
});
Expand Down

0 comments on commit ab0b37b

Please sign in to comment.