From 9b51b3cb89b36edefe1d835219b3aa90ca8ffed3 Mon Sep 17 00:00:00 2001 From: Matthew McNeely Date: Wed, 27 Mar 2019 21:25:41 -0400 Subject: [PATCH] Fix missed mutex release --- prom.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prom.go b/prom.go index e540f76..4688b7a 100644 --- a/prom.go +++ b/prom.go @@ -168,6 +168,8 @@ func (p *Prometheus) Instrument() gin.HandlerFunc { if p.PathMap.values == nil { p.PathMap.RUnlock() p.update() + } else { + p.PathMap.RUnlock() } var path string var found bool