summaryrefslogtreecommitdiffstats
path: root/matterbridge.go
diff options
context:
space:
mode:
authorPatrick Connolly <patrick.c.connolly@gmail.com>2018-12-01 06:53:00 +0800
committerWim <wim@42.be>2018-11-30 23:53:00 +0100
commitf2088a687edd53e9e797f3b8941210ca3650cc45 (patch)
tree7a2adb7522e9696873fd734e4abb255759ba3b5e /matterbridge.go
parentfaeeee29482ffd23d26398bcaddea8dc885bc468 (diff)
downloadmatterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.gz
matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.bz2
matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.zip
Extract bridgeMap into own package to improve testability (#601)
Diffstat (limited to 'matterbridge.go')
-rw-r--r--matterbridge.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/matterbridge.go b/matterbridge.go
index df0918bb..81af86d0 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -8,6 +8,7 @@ import (
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/gateway"
+ "github.com/42wim/matterbridge/gateway/bridgemap"
"github.com/google/gops/agent"
prefixed "github.com/matterbridge/logrus-prefixed-formatter"
log "github.com/sirupsen/logrus"
@@ -45,7 +46,7 @@ func main() {
}
cfg := config.NewConfig(*flagConfig)
cfg.BridgeValues().General.Debug = *flagDebug
- r, err := gateway.NewRouter(cfg)
+ r, err := gateway.NewRouter(cfg, bridgemap.FullMap)
if err != nil {
flog.Fatalf("Starting gateway failed: %s", err)
}