tail: remove unused var "_event_counter"

This commit is contained in:
Daniel Hofstetter 2022-11-29 10:20:04 +01:00 committed by Sylvestre Ledru
parent e2e42ac265
commit 306a58a731

View file

@ -479,7 +479,6 @@ pub fn follow(mut observer: Observer, settings: &Settings) -> UResult<()> {
let mut process = platform::ProcessChecker::new(observer.pid);
let mut _event_counter = 0;
let mut _timeout_counter = 0;
// main follow loop
@ -529,7 +528,6 @@ pub fn follow(mut observer: Observer, settings: &Settings) -> UResult<()> {
.receiver
.recv_timeout(settings.sleep_sec);
if rx_result.is_ok() {
_event_counter += 1;
_timeout_counter = 0;
}