mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-24 03:59:49 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -47,7 +47,7 @@ func (cache *localCache) GetOrUpdate(
|
|||
return cached, nil
|
||||
}
|
||||
|
||||
v, err, _ := cache.singleflight.Do(strkey, func() (interface{}, error) {
|
||||
v, err, _ := cache.singleflight.Do(strkey, func() (any, error) {
|
||||
cache.mu.RLock()
|
||||
cached, ok := cache.m[strkey]
|
||||
cache.mu.RUnlock()
|
||||
|
@ -105,7 +105,7 @@ func (cache *globalCache) GetOrUpdate(
|
|||
return data, nil
|
||||
}
|
||||
|
||||
v, err, _ := cache.singleflight.Do(string(key), func() (interface{}, error) {
|
||||
v, err, _ := cache.singleflight.Do(string(key), func() (any, error) {
|
||||
data, expiry, ok := cache.get(key)
|
||||
if ok && now.Before(expiry) {
|
||||
return data, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue