Skip to content

Commit 978f830

Browse files
committed
Better code
Signed-off-by: David Gageot <[email protected]>
1 parent 4945555 commit 978f830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/docker-mcp/internal/gateway/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (g *Gateway) startCentralStreamingServer(ctx context.Context, newMCPServer
120120

121121
func parseServerNames(serverNames string) []string {
122122
var names []string
123-
for _, name := range strings.Split(serverNames, ",") {
123+
for name := range strings.SplitSeq(serverNames, ",") {
124124
names = append(names, strings.TrimSpace(name))
125125
}
126126
return names

0 commit comments

Comments
 (0)