summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 22:33:03 +0100
committerWim <wim@42.be>2018-11-08 22:33:03 +0100
commit9be0f8f000867b3df6c282b8b4b947590204274d (patch)
tree1b1a9b775da6e9a09ed9b90f30f4f5f1e2f02bb4 /gateway/gateway.go
parent78401214b0b5d26fd3f0d10139061edce35e56c1 (diff)
downloadmatterbridge-msglm-9be0f8f000867b3df6c282b8b4b947590204274d.tar.gz
matterbridge-msglm-9be0f8f000867b3df6c282b8b4b947590204274d.tar.bz2
matterbridge-msglm-9be0f8f000867b3df6c282b8b4b947590204274d.zip
Make gochecknoinits linter happy
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go5
1 files changed, 1 insertions, 4 deletions
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)