diff --git a/validator/src/validator/health_check/score.rs b/validator/src/validator/health_check/score.rs index 56d3098cc4..2f394120e2 100644 --- a/validator/src/validator/health_check/score.rs +++ b/validator/src/validator/health_check/score.rs @@ -37,13 +37,14 @@ impl NodeScore { } } - pub(crate) fn increase_packet_count(&mut self, was_delivered: bool) { + pub(crate) fn increase_sent_packet_count(&mut self) { self.packets_sent += 1; - if was_delivered { + } + + pub(crate) fn increase_received_packet_count(&mut self) { self.packets_received += 1; } } -} impl std::fmt::Display for NodeScore { fn fmt(&self, f: &mut Formatter) -> Result<(), std::fmt::Error> {