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