Improved search

This commit is contained in:
2017-07-20 14:26:43 +02:00
parent ecb9e4ad86
commit 5ea14e8fc1
10 changed files with 115 additions and 46 deletions

View File

@ -11,7 +11,7 @@ import (
const requestThreshold = 10
var ipToStats = cache.New(30*time.Minute, 15*time.Minute)
var ipToStats = cache.New(15*time.Minute, 15*time.Minute)
// IPStats captures the statistics for a single IP.
type IPStats struct {