fix missing mutex lock
This commit is contained in:
parent
7856de56b5
commit
dca46e8c69
|
@ -57,6 +57,7 @@ func (c *gitlabClient) fetchUser(uid int) (*User, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// save in cache
|
// save in cache
|
||||||
|
c.userCacheMux.Lock()
|
||||||
c.userCache[uid] = &newUser
|
c.userCache[uid] = &newUser
|
||||||
c.userCacheMux.Unlock()
|
c.userCacheMux.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue