Skip to content

Commit b02a5d2

Browse files
authored
fix/connection-manager-split-improvement (#21852)
1 parent 577eba4 commit b02a5d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/services/gateway/connectionmanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ func (m *donConnectionManager) getHandler(method string) (handlers.Handler, erro
305305
return h, nil // supports legacy single-handler case
306306
}
307307
}
308-
serviceName := strings.Split(method, ".")[0]
308+
serviceName, _, hasDot := strings.Cut(method, ".")
309309
// Special case for legacy methods - default to "workflows" service.
310-
if !strings.Contains(method, ".") {
310+
if !hasDot {
311311
serviceName = "workflows"
312312
}
313313
handler, ok := m.handlers[serviceName]

0 commit comments

Comments
 (0)