cloudflare/boringtun

Keeping timers relative to start of tunnel initiation is confusing

Open

#309 aperta il 24 ago 2022

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Rust (321 fork)batch import
code qualitygood first issue

Metriche repository

Star
 (4849 star)
Metriche merge PR
 (Merge medio 318g 18h) (3 PR mergiate in 30 g)

Descrizione

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.

Guida contributor