Skip to content

Commit

Permalink
Merge pull request #6 from matthewmcneely/master
Browse files Browse the repository at this point in the history
Fix missed mutex release
  • Loading branch information
depado authored Mar 28, 2019
2 parents ee66175 + 9b51b3c commit 8d43ab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,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
Expand Down

0 comments on commit 8d43ab6

Please sign in to comment.