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:
1 parent
55f1f1aa80
commit
17dac26996
4 files changed
+21
-11
No files matched your search
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user