cloudflare/boringtun

Keeping timers relative to start of tunnel initiation is confusing

Ouverte

#309 ouverte le 24 août 2022

 (6 commentaires) (0 réaction) (0 personne assignée)Rust (321 forks)batch import
code qualitygood first issue

Métriques du dépôt

Stars
 (4 849 étoiles)
Métriques de merge PR
 (Merge moyen 318j 18h) (3 PRs mergées en 30 j)

Description

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.

Guide contributeur