fix: race condition when updating user auth

This commit is contained in:
James Houlahan
2020-04-22 15:07:35 +02:00
committed by Michal Horejsek
parent 51846efed5
commit 8f15041d8f
4 changed files with 11 additions and 33 deletions

View File

@ -21,8 +21,3 @@ package pmapi
func (s *Auth) DANGEROUSLYSetUID(uid string) {
s.uid = uid
}
// GetClientAuthChannel returns a channel on which clients should send auths.
func (cm *ClientManager) GetClientAuthChannel() chan ClientAuth {
return cm.clientAuths
}