8000 feat(plugins): Use wazero instead of wasmtime by kyleconroy · Pull Request #3042 · sqlc-dev/sqlc · GitHub
[go: up one dir, main page]

Skip to content

feat(plugins): Use wazero instead of wasmtime #3042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix build
  • Loading branch information
kyleconroy committed Dec 6, 2023
commit 0914cad96baea8c89843de08b7ab3da77f627e88
4 changes: 2 additions & 2 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (r *Runner) Invoke(ctx context.Context, method string, args any, reply any,
if result != nil {
defer result.Close(ctx)
}
if cerr := checkError(err, &stderr); cerr != nil {
if cerr := checkError(err, stderr); cerr != nil {
return cerr
}

Expand All @@ -262,7 +262,7 @@ func (r *Runner) NewStream(ctx context.Context, desc *grpc.StreamDesc, method st
return nil, status.Error(codes.Unimplemented, "")
}

func checkError(err error, stderr io.Reader) error {
func checkError(err error, stderr bytes.Buffer) error {
if err == nil {
return err
}
Expand Down
0