Make gochecknoinits linter happy

This commit is contained in:
Wim 2018-11-08 22:33:03 +01:00
parent 78401214b0
commit 9be0f8f000
1 changed files with 1 additions and 4 deletions

View File

@ -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)