// getNamespaceByID retrieves the information from the cache if it exists.
func (r *registry) getNamespaceByID(id namespace.ID) (*namespace.Namespace, error) {
registry.go
r.nsMapsLock.RLock()
defer r.nsMapsLock.RUnlock()
return r.getNamespaceByIDLocked(id)
}
func (r *registry) getNamespaceByIDLocked(id namespace.ID) (*namespace.Namespace, error) {