From 1fae4c481721103d1da5afcfded9c3220a657ea3 Mon Sep 17 00:00:00 2001 From: Tino Date: Wed, 6 Dec 2017 21:12:43 +0100 Subject: [PATCH] Remove mutex --- route/no_route.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/route/no_route.go b/route/no_route.go index 98566ed28..d16f80873 100644 --- a/route/no_route.go +++ b/route/no_route.go @@ -2,7 +2,6 @@ package route import ( "log" - "sync" "sync/atomic" ) @@ -24,15 +23,9 @@ func GetHTML() string { return store.Load().(HTML).value } -// hmu guards the atomic writes in SetHTML. -var hmu sync.Mutex - // SetHTML sets the current noroute html. The function is safe to be called from // multiple goroutines. func SetHTML(h string) { - hmu.Lock() - defer hmu.Unlock() - html := HTML{h} store.Store(html)