add comments, fix user expiry log spam

now actually removes the already deleted user from the expiry list.
This commit is contained in:
Harvey Tindall
2021-03-21 22:50:33 +00:00
parent e351c35cc8
commit 1a6d78352c
4 changed files with 12 additions and 5 deletions
+1
View File
@@ -76,6 +76,7 @@ func (app *appContext) checkUsers() {
}
if !found {
app.info.Printf("Expired user already deleted, ignoring.")
delete(app.storage.users, id)
continue
}
app.info.Printf("%s expired user \"%s\"", termPlural, user.Name)