Commit f053971
committed
fix(discovery,service): drop unused method, add MissedTickBehavior::Skip
- discovery.rs: drop the unused `peer_primary_ip` method. It was
kept as a "canonical lookup entry point" with `#[allow(dead_code)]`,
but the dialer reads `primary_cache` directly via the shared
`Rc<RefCell>` in `connect.rs` and nothing else calls it.
- discovery.rs: fix the `refresh()` doc — said "call from the
if-watch supervisor" but it's actually driven by the service's
periodic tick.
- service.rs: set `MissedTickBehavior::Skip` on
`discovery_refresh_tick` (30s). The default `Burst` would
replay backlog ticks back-to-back when resuming from a long
suspend, each triggering a redundant interface enumeration and
TXT republish.1 parent 66c006d commit f053971
2 files changed
Lines changed: 7 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 268 | | |
288 | 269 | | |
289 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
0 commit comments