summaryrefslogtreecommitdiffstats
path: root/modules/auth/openid/discovery_cache.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-03-21 01:55:00 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-21 08:55:00 +0800
commitf73e7344111645b836e767bbf80b96834651805f (patch)
tree0315cb59a9b56bcb594d2cd4dccf385557e834ba /modules/auth/openid/discovery_cache.go
parent888dee3b5f931062ea97e57130b26d1943e5173e (diff)
downloadgitea-f73e7344111645b836e767bbf80b96834651805f.tar.gz
gitea-f73e7344111645b836e767bbf80b96834651805f.zip
Run "make fmt" with go-1.6 (#1333)
Diffstat (limited to 'modules/auth/openid/discovery_cache.go')
-rw-r--r--modules/auth/openid/discovery_cache.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/auth/openid/discovery_cache.go b/modules/auth/openid/discovery_cache.go
index cf9f5ae70c..68cd7a8756 100644
--- a/modules/auth/openid/discovery_cache.go
+++ b/modules/auth/openid/discovery_cache.go
@@ -18,7 +18,7 @@ type timedDiscoveredInfo struct {
type timedDiscoveryCache struct {
cache map[string]timedDiscoveredInfo
- ttl time.Duration
+ ttl time.Duration
mutex *sync.Mutex
}
@@ -56,4 +56,3 @@ func (s *timedDiscoveryCache) Get(id string) openid.DiscoveredInfo {
}
return nil
}
-