Skip to content

Commit ebb5c08

Browse files
committed
fix(vcall): non-coroutine callback
1 parent 2922571 commit ebb5c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vevent/vcall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ func NewAPICallerReturnHook(ctx *zero.Ctx, callback func(req zero.APIRequest, rs
2727
//nolint:revive
2828
func (v *APICallerReturnHook) CallAPI(c context.Context, req zero.APIRequest) (rsp zero.APIResponse, err error) {
2929
rsp, err = v.caller.CallAPI(c, req)
30-
go v.callback(req, rsp, err)
30+
v.callback(req, rsp, err)
3131
return
3232
}

0 commit comments

Comments
 (0)