mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-15 15:50:38 +08:00
`fn handle_events` would panic, if there were multiple events for one token, and the first one that happened to be handled was an error. Indeed it is concerning if a token is encountered that was never registered before. However, tokens that were just deregistered must be tracked. Using `Vec` here seems a bit costly, in the future, `smallvec::SmallVec` could be considered. The "unregister" methods are renamed to "deregister" to better line up with `mio` vocabulary. Log statements that helped analysis of the panic that occurred here are overhauled and improved, requiring a `Debug` bound on types that obviously implement it.