if used as library, allow that the auth and bridge plugins can be set by (#79)

struct, and not only by name
This commit is contained in:
gerdstolpmann authored and GitHub committed 2020-04-03 14:49:50 +08:00
1 parent 55f1f1aa80
commit 17dac26996
4 files changed
+21 -11

No files matched your search

+2 -2
View File
@@ -92,8 +92,8 @@ func NewBroker(config *Config) (*Broker, error) {
b.tlsConfig = tlsconfig
}
b.auth = auth.NewAuth(b.config.Plugin.Auth)
b.bridgeMQ = bridge.NewBridgeMQ(b.config.Plugin.Bridge)
b.auth = b.config.Plugin.Auth
b.bridgeMQ = b.config.Plugin.Bridge
return b, nil
}