From 543d7004a3ce9fcf12db3e658aa3a4d82f817953 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 55c8b6cfa4065e..9e67ab0f636400 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 5395518cf1e144..b05f59d86d778d 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 5f97728683de5f..bbe46c627fdae8 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 d4ea27d971c825..994f97a0474c07 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,