Skip to content
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

seckill.go的一些问题 #49

Open
fyerfyer opened this issue Dec 17, 2024 · 0 comments
Open

seckill.go的一些问题 #49

fyerfyer opened this issue Dec 17, 2024 · 0 comments

Comments

@fyerfyer
Copy link

貌似

queue := kq.MustNewQueue(c.Kafka, kq.WithHandle(service.Consume))

这一行报错了,因为原有的Consume的签名为:Consume(_ string, value string) error,但是ConsumeHandle还需要context.Context参数,设置这个参数后就没有报错了。不知道是不是一个小问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant