mirror of
https://github.com/csehviktor/status-monitor.git
synced 2026-04-28 16:27:34 +02:00
cleanup code
This commit is contained in:
@@ -29,9 +29,8 @@ impl MqttSubscriber {
|
||||
|
||||
self.clients.broadcast(&payload).await;
|
||||
|
||||
if let Err(e) = self.storage.record_message(&payload.agent).await {
|
||||
eprintln!("failed to record message for {}: {}", &payload.agent, e);
|
||||
}
|
||||
if let Err(e) = self.storage.record_uptime(&payload.agent).await {
|
||||
eprintln!("failed to record uptime for {}: {}", &payload.agent, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user