Skip to content

Commit

Permalink
Clean up sui-node
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Mar 28, 2023
1 parent 58abec8 commit d4dd6d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/sui-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,12 @@ impl SuiNode {
.get_sui_system_state_object_during_reconfig()
.expect("Read Sui System State object cannot fail");
if let Err(err) = self.end_of_epoch_channel.send(latest_system_state.clone()) {
warn!(
"Failed to send end of epoch notification to subscriber: {:?}",
err
);
if self.state.is_fullnode(&cur_epoch_store) {
warn!(
"Failed to send end of epoch notification to subscriber: {:?}",
err
);
}
}

cur_epoch_store.record_is_safe_mode_metric(latest_system_state.safe_mode());
Expand Down

0 comments on commit d4dd6d9

Please sign in to comment.