Updated locks to work with next embedded mutex.

This commit is contained in:
empathetic-alligator 2014-12-14 02:44:39 -05:00
parent e3e46f9b8c
commit 21bf1ad147

View File

@ -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 {