style: spell two Durations in their optimal units

New clippy flags duration_suboptimal_units; from_mins(5) and
from_secs(1) say what from_secs(300) and from_millis(1000) meant.
This commit is contained in:
Michel de Graaf
2026-09-10 09:04:48 +02:00
parent 611648c5d4
commit e641644808
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const CONNECT_SWEEP_INTERVAL: Duration = Duration::from_secs(1);
/// (peer code 51). Five minutes is what Nicotine+ uses: often enough that a
/// queue position on screen means something, rare enough that a peer with a
/// long queue is not pestered.
const QUEUE_POSITION_INTERVAL: Duration = Duration::from_secs(300);
const QUEUE_POSITION_INTERVAL: Duration = Duration::from_mins(5);
/// How long a write to a child may block. The relay runs under the client
/// context lock, so an unbounded write would freeze every other operation