cloudflare/boringtun

Keeping timers relative to start of tunnel initiation is confusing

Aberta

#309 aberto em 24 de ago. de 2022

 (6 comentários) (0 reação) (0 responsável)Rust (321 forks)batch import
code qualitygood first issue

Métricas do repositório

Stars
 (4.849 estrelas)
Métricas de merge de PR
 (Mesclagem média 318d 18h) (3 fundiu PRs em 30d)

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.

Guia do colaborador