mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-28 05:32:01 -08:00
Make gochecknoinits linter happy
This commit is contained in:
parent
78401214b0
commit
9be0f8f000
@ -74,11 +74,8 @@ const (
|
|||||||
apiProtocol = "api"
|
apiProtocol = "api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
flog = log.WithFields(log.Fields{"prefix": "gateway"})
|
|
||||||
}
|
|
||||||
|
|
||||||
func New(cfg config.Gateway, r *Router) *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,
|
gw := &Gateway{Channels: make(map[string]*config.ChannelInfo), Message: r.Message,
|
||||||
Router: r, Bridges: make(map[string]*bridge.Bridge), Config: r.Config}
|
Router: r, Bridges: make(map[string]*bridge.Bridge), Config: r.Config}
|
||||||
cache, _ := lru.New(5000)
|
cache, _ := lru.New(5000)
|
||||||
|
Loading…
Reference in New Issue
Block a user