No initial best-node update on startup #13

Open
opened 2026-02-11 10:13:47 +00:00 by zaelgohary · 0 comments
Member

Location: mycelium/src/dns.rs - start_metric_checker

Problem: update_best_node is only called on interval ticks (every 30s). For the first 30 seconds, best_node is always None, so fallback is always used. More importantly, no route requests are triggered until the first tick.

Fix: Call update_best_node once immediately on startup before the interval loop.

**Location**: `mycelium/src/dns.rs` - `start_metric_checker` **Problem**: `update_best_node` is only called on interval ticks (every 30s). For the first 30 seconds, `best_node` is always None, so fallback is always used. More importantly, no route requests are triggered until the first tick. **Fix**: Call `update_best_node` once immediately on startup before the interval loop.
Sign in to join this conversation.
No labels
Urgent
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
geomind_code/mycelium_network#13
No description provided.