Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit f0c0d8947d93c990d3c68457273409029cfb5105 Author: Wim <wim@42.be> Date: Thu Nov 08 22:33:03 2018 +0000 Make gochecknoinits linter happy diff --git a/gateway/gateway.go b/gateway/gateway.go index 73072fa..442e27f 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -7411 +748 @@ 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)