Commit 74604cde authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent aed96aca
Pipeline #129 failed with stage
...@@ -2,7 +2,7 @@ PREFIX=/usr/local ...@@ -2,7 +2,7 @@ PREFIX=/usr/local
VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S) VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
gitlab-workhorse: $(wildcard *.go) gitlab-workhorse: $(wildcard *.go)
go build -ldflags "-X main.Version ${VERSION}" -o gitlab-workhorse go build -race -ldflags "-X main.Version ${VERSION}" -o gitlab-workhorse
install: gitlab-workhorse install: gitlab-workhorse
install gitlab-workhorse ${PREFIX}/bin/ install gitlab-workhorse ${PREFIX}/bin/
......
...@@ -48,7 +48,7 @@ type AuthCacheEntry struct { ...@@ -48,7 +48,7 @@ type AuthCacheEntry struct {
var authCache = make(map[string]*AuthCacheEntry) var authCache = make(map[string]*AuthCacheEntry)
// Time period for refreshing / removing unused entires in authCache // Time period for refreshing / removing unused entires in authCache
const authCacheRefresh = 5 * time.Second // XXX 30 const authCacheRefresh = 10 * time.Second // XXX 30
// Goroutine to refresh auth cache entry periodically while it is used. // Goroutine to refresh auth cache entry periodically while it is used.
// if the entry is detected to be not used - remove it from cache and stop refreshing. // if the entry is detected to be not used - remove it from cache and stop refreshing.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment