mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-07 19:03:17 +03:00
Updated locks to work with next embedded mutex.
This commit is contained in:
parent
e3e46f9b8c
commit
21bf1ad147
@ -237,9 +237,9 @@ func (s *Server) Op(fingerprint string) {
|
|||||||
|
|
||||||
func (s *Server) Whitelist(fingerprint string) {
|
func (s *Server) Whitelist(fingerprint string) {
|
||||||
logger.Infof("Adding whitelist: %s", fingerprint)
|
logger.Infof("Adding whitelist: %s", fingerprint)
|
||||||
s.lock.Lock()
|
s.Lock()
|
||||||
s.whitelist[fingerprint] = struct{}{}
|
s.whitelist[fingerprint] = struct{}{}
|
||||||
s.lock.Unlock()
|
s.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) Uptime() string {
|
func (s *Server) Uptime() string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user