chore: sync with gin-template

This commit is contained in:
JustSong
2022-11-22 11:04:06 +08:00
parent 8247192977
commit 5913266969
41 changed files with 813 additions and 490 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func DeleteKey(key string, purpose string) {
delete(verificationMap, purpose+key)
}
// no lock inside!
// no lock inside, so the caller must lock the verificationMap before calling!
func removeExpiredPairs() {
now := time.Now()
for key := range verificationMap {