- 优化任务调度监听
continuous-integration/drone/push Build was killed Details

master v1.0.6
李光春 2 years ago
parent 47f9820158
commit 6218146c4a

@ -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 创建

@ -1,3 +1,3 @@
package gojobs
const Version = "1.0.5"
const Version = "1.0.6"

Loading…
Cancel
Save