From 34c9f035ee86bf8701263740ac9f0724edeaa946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 26 Nov 2021 15:56:30 +0800 Subject: [PATCH] update --- middleware/etcd/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/etcd/watch.go b/middleware/etcd/watch.go index e080d55..22ecc6a 100644 --- a/middleware/etcd/watch.go +++ b/middleware/etcd/watch.go @@ -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)