Skip to content

Commit

Permalink
feat: change wasm guest signature
Browse files Browse the repository at this point in the history
  • Loading branch information
earayu committed Nov 29, 2024
1 parent ee65c0b commit c01196e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified endtoend/wasm/testdata/datamasking.wasm
Binary file not shown.
Binary file modified endtoend/wasm/testdata/interceptor.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions go/vt/vttablet/tabletserver/wasm_plugin_wazero.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ func (ins *WazeroInstance) RunWASMPlugin() error {
}

instancePtr := uint64(uintptr(unsafe.Pointer(ins)))
modulePtr := uint64(uintptr(unsafe.Pointer(ins.module)))
_, err := wazeroGuestFunc.Call(ctx, instancePtr, modulePtr)
_, err := wazeroGuestFunc.Call(ctx, instancePtr)
if err != nil {
return err
}
Expand All @@ -230,7 +229,8 @@ func (ins *WazeroInstance) RunWASMPluginAfter() error {

wazeroGuestFunc := ins.instance.ExportedFunction("RunAfterExecutionOnGuest")

_, err := wazeroGuestFunc.Call(ctx)
instancePtr := uint64(uintptr(unsafe.Pointer(ins)))
_, err := wazeroGuestFunc.Call(ctx, instancePtr)
if err != nil {
return err
}
Expand Down

0 comments on commit c01196e

Please sign in to comment.