From da45aca9c526a780a6a5401745831e922c38e299 Mon Sep 17 00:00:00 2001 From: Balaji Arun Date: Tue, 1 Aug 2023 20:13:05 -0700 Subject: [PATCH] [dag] rename reliable_broadcast.rs to rb_handler.rs --- consensus/src/dag/dag_handler.rs | 2 +- consensus/src/dag/mod.rs | 2 +- consensus/src/dag/{reliable_broadcast.rs => rb_handler.rs} | 0 consensus/src/dag/tests/mod.rs | 2 +- .../tests/{reliable_broadcast_tests.rs => rb_handler_tests.rs} | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename consensus/src/dag/{reliable_broadcast.rs => rb_handler.rs} (100%) rename consensus/src/dag/tests/{reliable_broadcast_tests.rs => rb_handler_tests.rs} (98%) diff --git a/consensus/src/dag/dag_handler.rs b/consensus/src/dag/dag_handler.rs index 55c8b6cfa4065..9e67ab0f63640 100644 --- a/consensus/src/dag/dag_handler.rs +++ b/consensus/src/dag/dag_handler.rs @@ -11,7 +11,7 @@ use super::{ }; use crate::{ dag::{ - dag_network::RpcHandler, dag_store::Dag, reliable_broadcast::NodeBroadcastHandler, + dag_network::RpcHandler, dag_store::Dag, rb_handler::NodeBroadcastHandler, types::DAGMessage, }, network::{IncomingDAGRequest, TConsensusMsg}, diff --git a/consensus/src/dag/mod.rs b/consensus/src/dag/mod.rs index 5395518cf1e14..b05f59d86d778 100644 --- a/consensus/src/dag/mod.rs +++ b/consensus/src/dag/mod.rs @@ -9,7 +9,7 @@ mod dag_handler; mod dag_network; mod dag_store; mod order_rule; -mod reliable_broadcast; +mod rb_handler; mod storage; #[cfg(test)] mod tests; diff --git a/consensus/src/dag/reliable_broadcast.rs b/consensus/src/dag/rb_handler.rs similarity index 100% rename from consensus/src/dag/reliable_broadcast.rs rename to consensus/src/dag/rb_handler.rs diff --git a/consensus/src/dag/tests/mod.rs b/consensus/src/dag/tests/mod.rs index 5f97728683de5..bbe46c627fdae 100644 --- a/consensus/src/dag/tests/mod.rs +++ b/consensus/src/dag/tests/mod.rs @@ -7,5 +7,5 @@ mod dag_test; mod fetcher_test; mod helpers; mod order_rule_tests; -mod reliable_broadcast_tests; +mod rb_handler_tests; mod types_test; diff --git a/consensus/src/dag/tests/reliable_broadcast_tests.rs b/consensus/src/dag/tests/rb_handler_tests.rs similarity index 98% rename from consensus/src/dag/tests/reliable_broadcast_tests.rs rename to consensus/src/dag/tests/rb_handler_tests.rs index d4ea27d971c82..994f97a0474c0 100644 --- a/consensus/src/dag/tests/reliable_broadcast_tests.rs +++ b/consensus/src/dag/tests/rb_handler_tests.rs @@ -3,7 +3,7 @@ use crate::dag::{ dag_store::Dag, - reliable_broadcast::{NodeBroadcastHandleError, NodeBroadcastHandler}, + rb_handler::{NodeBroadcastHandleError, NodeBroadcastHandler}, storage::DAGStorage, tests::{dag_test::MockStorage, helpers::new_node}, types::NodeCertificate,