Commit Graph

4 Commits

Author SHA1 Message Date
Lee Smet
7682bc60c2 Skip route selection after unfeasible route update
If an unfeasible update is applied to an existing, unselected route, we
now skip route selection altogether. Since the route is not selected,
it can obviously not be unselected, and selecting it won't be possible
since its now not feasible.

By immediately returning we also can't notify downstream peers which
have sent a seqno request for this combination. This is fine, since if
there is an outstanding request for this seqno, considering it is
unfeasible, it won't be of interest to the downstream peer. Note that if
the seqno request triggered a bump of the route seqno, the _first_ update
is always feasible.

Also expose a metric value to track how often we just skip route
selection.

Closes #329

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-07-10 11:17:32 +02:00
Lee Smet
b73dd06f1a Bump version to v0.5.3
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-06-07 10:16:27 +02:00
dependabot[bot]
422a26bc54 Bump tokio from 1.37.0 to 1.38.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.37.0 to 1.38.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.37.0...tokio-1.38.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 09:45:34 +02:00
Lee Smet
148283db39 Add metrics implementations in mycelium-metrics
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2024-05-28 14:21:59 +02:00