diff --git a/cmd/ftl/cmd_schema_get.go b/cmd/ftl/cmd_schema_get.go index f8fc4e05d9..8dc83d1039 100644 --- a/cmd/ftl/cmd_schema_get.go +++ b/cmd/ftl/cmd_schema_get.go @@ -86,6 +86,7 @@ func (g *getSchemaCmd) generateJSON(resp *connect.ServerStreamForClient[ftlv1.Pu } schema := &schemapb.Schema{} +msgloop: for resp.Receive() { msg := resp.Msg() @@ -96,8 +97,8 @@ func (g *getSchemaCmd) generateJSON(resp *connect.ServerStreamForClient[ftlv1.Pu schema.Modules = append(schema.Modules, module) delete(remainingNames, module.Name) } - break } + break msgloop default: // Ignore for now }