You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Printf("[TRACE] connectionFactory get %s %s", pluginFQN, connectionName)
58
60
f.connectionLock.Lock()
59
61
deferf.connectionLock.Unlock()
60
-
// if this is an aggregate connection, return error
61
-
// (we must iterate through the child connections explicitly)
62
-
iff.hub.IsAggregatorConnection(connectionName) {
63
-
log.Printf("[WARN] connectionFactory get %s %s called for aggregator connection - invalid (we must iterate through the child connections explicitly)", pluginFQN, connectionName)
64
-
debug.PrintStack()
65
-
returnnil, fmt.Errorf("the connectionFactory cannot return or create a connectionPlugin for an aggregate connection")
62
+
63
+
// build a map key for the plugin
64
+
varkeystring
65
+
// if we have already loaded this plugin and it supports multi connections, just use FQN
66
+
iff.multiConnectionPlugins[pluginFQN] {
67
+
key=pluginFQN
68
+
} else {
69
+
// otherwise try looking for a legacy connection plugin
log.Printf("[WARN] connectionFactory get %s %s called for aggregator connection - invalid (we must iterate through the child connections explicitly)", pluginFQN, connectionName)
86
+
debug.PrintStack()
87
+
returnnil, fmt.Errorf("the connectionFactory cannot return or create a connectionPlugin for an aggregate connection")
0 commit comments