cloudflare/boringtun

Keeping timers relative to start of tunnel initiation is confusing

Offen

#309 geöffnet am 24.08.2022

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (321 Forks)batch import
code qualitygood first issue

Repository-Metriken

Stars
 (4.849 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 318T 18h) (3 gemergte PRs in 30 T)

Beschreibung

Keeping timers this way means that for example update_session_timers takes a time_now param that's a Duration instead of an Instant. All entries in Tunn::timers are Durations when many of them are "the time that something happened" and idiomatically I think these would be better expressed as Instants.

Contributor Guide