diff options
author | Wim <wim@42.be> | 2018-02-27 22:16:44 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-27 23:22:12 +0100 |
commit | 02a5bc096fedea8a20e9693243b5291ed49cdf94 (patch) | |
tree | ac984d00a065f5e97f7012b75c67e02bd8ba1eff /gateway/router.go | |
parent | 2110db6f0ca65b5f0cfb4c520110e8d667fb105e (diff) | |
download | matterbridge-msglm-02a5bc096fedea8a20e9693243b5291ed49cdf94.tar.gz matterbridge-msglm-02a5bc096fedea8a20e9693243b5291ed49cdf94.tar.bz2 matterbridge-msglm-02a5bc096fedea8a20e9693243b5291ed49cdf94.zip |
Do some small cleanups
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gateway/router.go b/gateway/router.go index 7c3d8585..264486c2 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -5,7 +5,6 @@ import ( "github.com/42wim/matterbridge/bridge" "github.com/42wim/matterbridge/bridge/config" "github.com/42wim/matterbridge/gateway/samechannel" - //log "github.com/sirupsen/logrus" // "github.com/davecgh/go-spew/spew" "time" ) @@ -17,10 +16,7 @@ type Router struct { } func NewRouter(cfg *config.Config) (*Router, error) { - r := &Router{} - r.Config = cfg - r.Message = make(chan config.Message) - r.Gateways = make(map[string]*Gateway) + r := &Router{Message: make(chan config.Message), Gateways: make(map[string]*Gateway), Config: cfg} sgw := samechannelgateway.New(cfg) gwconfigs := sgw.GetConfig() |