Commit 837cb0f0 authored by ale's avatar ale

Fix hilarious reverse-expiration bug

parent 8c9690bf
Pipeline #887 passed with stages
in 46 seconds
......@@ -116,7 +116,7 @@ func (s *KeyStore) expire() {
for t := range time.NewTicker(600 * time.Second).C {
s.mx.Lock()
for u, k := range s.userKeys {
if k.expiry.After(t) {
if k.expiry.Before(t) {
wipeBytes(k.pkey)
delete(s.userKeys, u)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment