From 21bf1ad1479c45f332f16a318560676da101cb2e Mon Sep 17 00:00:00 2001 From: empathetic-alligator Date: Sun, 14 Dec 2014 02:44:39 -0500 Subject: [PATCH] Updated locks to work with next embedded mutex. --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index fe6d220..77235c5 100644 --- a/server.go +++ b/server.go @@ -237,9 +237,9 @@ func (s *Server) Op(fingerprint string) { func (s *Server) Whitelist(fingerprint string) { logger.Infof("Adding whitelist: %s", fingerprint) - s.lock.Lock() + s.Lock() s.whitelist[fingerprint] = struct{}{} - s.lock.Unlock() + s.Unlock() } func (s *Server) Uptime() string {