From 6218146c4a63e80820182f2ae748ac76486ebe55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Tue, 24 May 2022 11:28:27 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etcd.go | 4 ++-- version.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etcd.go b/etcd.go index a3db378..c6ff5c4 100644 --- a/etcd.go +++ b/etcd.go @@ -43,8 +43,8 @@ func NewEtcd(config *EtcdConfig) *Etcd { } // Watch 监听 -func (e Etcd) Watch(ctx context.Context, key string) clientv3.WatchChan { - return e.c.Watch(ctx, key) // type WatchChan <-chan WatchResponse +func (e Etcd) Watch(ctx context.Context, key string, opts ...clientv3.OpOption) clientv3.WatchChan { + return e.c.Watch(ctx, key, opts...) } // Create 创建 diff --git a/version.go b/version.go index d119ead..562292b 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package gojobs -const Version = "1.0.5" +const Version = "1.0.6"