Skip to content

Commit 89f4d8b

Browse files
kyleconroyanuraaga
andauthored
Update internal/ext/wasm/wasm.go
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
1 parent 7517d03 commit 89f4d8b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/ext/wasm/wasm.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,7 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
244244
}
245245

246246
// Print WASM stdout
247-
stdoutBlob, err := io.ReadAll(&stdout)
248-
if err != nil {
249-
return fmt.Errorf("read file: %w", err)
250-
}
247+
stdoutBlob := stdout.Bytes()
251248

252249
resp, ok := reply.(protoreflect.ProtoMessage)
253250
if !ok {

0 commit comments

Comments
 (0)