From 9be0f8f000867b3df6c282b8b4b947590204274d Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 8 Nov 2018 22:33:03 +0100 Subject: Make gochecknoinits linter happy --- gateway/gateway.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gateway') diff --git a/gateway/gateway.go b/gateway/gateway.go index 73072fae..442e27fb 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -74,11 +74,8 @@ const ( apiProtocol = "api" ) -func init() { - flog = log.WithFields(log.Fields{"prefix": "gateway"}) -} - func New(cfg config.Gateway, r *Router) *Gateway { + flog = log.WithFields(log.Fields{"prefix": "gateway"}) gw := &Gateway{Channels: make(map[string]*config.ChannelInfo), Message: r.Message, Router: r, Bridges: make(map[string]*bridge.Bridge), Config: r.Config} cache, _ := lru.New(5000) -- cgit v1.2.3