Skip to content

Commit

Permalink
Chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian committed Jan 14, 2024
1 parent 27a5eea commit 0b005bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion openraft/src/core/raft_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ use crate::error::RPCError;
use crate::error::Timeout;
use crate::log_id::LogIdOptionExt;
use crate::log_id::RaftLogId;
use crate::metrics::{RaftDataMetrics, RaftMetrics, RaftServerMetrics};
use crate::metrics::RaftDataMetrics;
use crate::metrics::RaftMetrics;
use crate::metrics::RaftServerMetrics;
use crate::metrics::ReplicationMetrics;
use crate::network::RPCOption;
use crate::network::RPCTypes;
Expand Down
7 changes: 1 addition & 6 deletions tests/tests/metrics/t10_server_metrics_and_data_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ async fn server_metrics_and_data_metrics() -> Result<()> {
log_index += router.client_request_many(0, "foo", n).await?;

let last_log_index = data_metrics.borrow().last_log.unwrap_or_default().index;
assert_eq!(
last_log_index,
log_index,
"last_log_index should be {:?}",
log_index
);
assert_eq!(last_log_index, log_index, "last_log_index should be {:?}", log_index);
assert!(
!server_metrics.borrow().has_changed(),
"server metrics should not update"
Expand Down

0 comments on commit 0b005bb

Please sign in to comment.