sync less frequently
@@ -477,7 +477,7 @@ fn main() {
if sleep {
let one_second = time::Duration::from_secs(1);
thread::sleep(one_second);
- }
+
// @TODO: only sync when we need to report statistics
for (index, send_to_client) in client_channels.iter().enumerate() {
send_to_client.send(GooseClientCommand::SYNC).unwrap();
@@ -485,3 +485,4 @@ fn main() {
}
}
}
+}
