From 5146dc614fc45df698ebf890af06421dea988c96 Mon Sep 17 00:00:00 2001 From: BurtonQin Date: Tue, 21 Apr 2020 06:00:21 -0400 Subject: [PATCH] tpl/tmplimpl/template: Change defer RLock to RUnlock --- tpl/tplimpl/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index c01b62136..81b62b342 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -783,7 +783,7 @@ func (t templateNamespace) Clone(lock bool) *templateNamespace { func (t *templateNamespace) Lookup(name string) (tpl.Template, bool) { if t.mu != nil { t.mu.RLock() - defer t.mu.RLock() + defer t.mu.RUnlock() } templ, found := t.templates[name]