miscellaneous cleaup

This commit is contained in:
soruh 2023-03-19 00:55:17 +01:00
parent 056e710c4c
commit c9d30bb299
3 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ pub async fn connection_handler(
};
};
info!(number, port, %addr, "authenticated");
info!(%addr, number, port, "authenticated");
let listener = handler_metadata.listener.as_mut().unwrap(); // we only break from the loop if this is set

View File

@ -210,7 +210,7 @@ fn main() -> anyhow::Result<()> {
let time_since_last_store = last_store.elapsed();
if time_since_last_store > CACHE_STORE_INTERVAL {
if time_since_last_store >= CACHE_STORE_INTERVAL {
let port_handler = port_handler.lock().await;
last_store = Instant::now();

View File

@ -352,7 +352,7 @@ struct Rejector {
impl Debug for Rejector {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("PortGuard")
f.debug_struct("Rejector")
.field("message", &self.state.1)
.finish()
}