miscellaneous cleaup
This commit is contained in:
parent
056e710c4c
commit
c9d30bb299
@ -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
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user