Skip to content

Commit 8035010

Browse files
committed
fix: fixes ReceiveWithTimeout duplication bug
1 parent aea2d61 commit 8035010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/plugin/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func (svc *Service) genWorkerSignalReceiveWithTimeout(f *g.File, signal string)
404404
b.Id("resp").Op("=").Op("&").Id(svc.getMessageName(method.Input)).Values()
405405
}
406406
b.If(
407-
b.List(g.Id("ok"), g.Id("more")).Op("=").Id("s").Dot("Channel").Dot("ReceiveWithTimeout").CallFunc(func(args *g.Group) {
407+
g.List(g.Id("ok"), g.Id("more")).Op("=").Id("s").Dot("Channel").Dot("ReceiveWithTimeout").CallFunc(func(args *g.Group) {
408408
args.Id("ctx")
409409
args.Id("timeout")
410410
if hasInput {

0 commit comments

Comments
 (0)