Commit dfc7c05
committed
Squashed commit of the following:
commit ab80dfa
Author: xdustinface <xdustinfacex@gmail.com>
Date: Fri Feb 13 01:45:26 2026 +0100
fix: use `Interval` for maintenance tick and delay the first dns tick
`time::sleep(MAINTENANCE_INTERVAL)` creates a fresh future on each `tokio::select!` loop iteration. Since `time::interval().tick()` fires immediately on the first poll, the DNS branch completes first and the maintenance sleep is dropped before awaiting. With `MAINTENANCE_INTERVAL` and `DNS_DISCOVERY_DELAY` both at 10 seconds, maintenance_tick will never execute in non-exclusive mode.1 parent 54a5380 commit dfc7c05
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
902 | 903 | | |
903 | 904 | | |
904 | 905 | | |
905 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
906 | 910 | | |
907 | 911 | | |
908 | 912 | | |
909 | | - | |
| 913 | + | |
910 | 914 | | |
911 | 915 | | |
912 | 916 | | |
| |||
0 commit comments