RC-0.3.0 (1)
This commit is contained in:
5
main.go
5
main.go
@@ -69,7 +69,7 @@ type prefixCacheEntry struct {
|
||||
|
||||
var (
|
||||
prefixCache = map[string]prefixCacheEntry{}
|
||||
prefixCacheMu sync.Mutex
|
||||
prefixCacheMu sync.RWMutex
|
||||
)
|
||||
|
||||
// Prometheus Metriken
|
||||
@@ -447,7 +447,8 @@ func loadCategoryPrefixes(cat string) ([]netip.Prefix, error) {
|
||||
}
|
||||
prefixCache[cat] = prefixCacheEntry{
|
||||
prefixes: prefixes,
|
||||
expireAt: time.Now().Add(1 * time.Second),
|
||||
expireAt: time.Now().Add(10 * time.Minute),
|
||||
//Hier geändert von 1 * time.Second
|
||||
}
|
||||
return prefixes, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user