This commit is contained in:
zhangdeman committed 2021-11-26 15:56:30 +08:00
1 parent 628eac60b4
commit 34c9f035ee
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ func WatchKeyWithOption(ctx context.Context, watchKey string, callbackFunc Watch
ctx = context.Background()
}
rch := Client.Watch(ctx, watchKey) // <-chan WatchResponse
rch := Client.Watch(ctx, watchKey, optionList...) // <-chan WatchResponse
for watchResp := range rch {
for _, ev := range watchResp.Events {
callbackFunc(ev)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.