Make gochecknoinits linter happy
This commit is contained in:
parent
78401214b0
commit
9be0f8f000
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue