Skip to content

Commit

Permalink
chore: removing warnings (#362)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <simon.paitrault@gmail.com>
  • Loading branch information
Freyskeyd authored Oct 30, 2023
1 parent 594bce1 commit bc5b48e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions crates/topos-tce-broadcast/src/double_echo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ impl DoubleEcho {
}

impl DoubleEcho {
/// Called to process potentially new certificate:
/// - either submitted from API ( [tce_transport::TceCommands::Broadcast] command)
/// - or received through the gossip (first step of protocol exchange)
/// Called to process new certificate submitted from the API or received on
/// the gossip p2p layer
pub async fn broadcast(&mut self, cert: Certificate, origin: bool) {
info!("🙌 Starting broadcasting the Certificate {}", &cert.id);
if self.cert_pre_broadcast_check(&cert).is_err() {
Expand Down
3 changes: 0 additions & 3 deletions crates/topos-tce/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ use tce_transport::TceCommands;
use topos_core::api::grpc::tce::v1::CheckpointRequest;

/// Definition of networking payload.
///
/// We assume that only Commands will go through the network,
/// [Response] is used to allow reporting of logic errors to the caller.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[allow(clippy::large_enum_variant)]
pub enum NetworkMessage {
Expand Down

0 comments on commit bc5b48e

Please sign in to comment.