Add tools update routine and cleanup logging
This change adds an update routine in the cache worker, for github tools downloads. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
ffbb3b8d41
commit
52007f4ffa
10 changed files with 320 additions and 86 deletions
1
cache/credentials_cache.go
vendored
1
cache/credentials_cache.go
vendored
|
|
@ -26,6 +26,7 @@ func (g *GithubCredentials) SetCredentials(credentials params.GithubCredentials)
|
|||
defer g.mux.Unlock()
|
||||
|
||||
g.cache[credentials.ID] = credentials
|
||||
UpdateCredentialsInAffectedEntities(credentials)
|
||||
}
|
||||
|
||||
func (g *GithubCredentials) GetCredentials(id uint) (params.GithubCredentials, bool) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue