diff --git a/director/origin_api.go b/director/origin_api.go index 6213c9ea0..321438495 100644 --- a/director/origin_api.go +++ b/director/origin_api.go @@ -108,7 +108,7 @@ func VerifyAdvertiseToken(token, namespace string) (bool, error) { // defer statements are scoped to function, not lexical enclosure, // which is why we wrap these defer statements in anon funcs - func () { + func() { namespaceKeysMutex.RLock() defer namespaceKeysMutex.RUnlock() item := namespaceKeys.Get(namespace)