From f98497fc0d3424ef5549b4e93415876608272e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 15 Aug 2023 14:08:46 +0800 Subject: [PATCH] update go mod --- define.go | 2 +- delete.go | 2 +- go.mod | 5 +---- go.sum | 4 ++-- init.go | 2 +- lease.go | 2 +- string.go | 2 +- watch.go | 2 +- 8 files changed, 9 insertions(+), 12 deletions(-) diff --git a/define.go b/define.go index d977336..24f73ad 100644 --- a/define.go +++ b/define.go @@ -11,7 +11,7 @@ import ( "math" "time" - "go.etcd.io/etcd/clientv3" + "github.com/coreos/etcd/clientv3" ) // 初始化client各种默认配置 diff --git a/delete.go b/delete.go index 8dbc91a..0fcc976 100644 --- a/delete.go +++ b/delete.go @@ -12,7 +12,7 @@ import ( "errors" "time" - "go.etcd.io/etcd/clientv3" + "github.com/coreos/etcd/clientv3" ) // DeleteWithOption ... diff --git a/go.mod b/go.mod index a921824..70e21a6 100644 --- a/go.mod +++ b/go.mod @@ -7,10 +7,7 @@ replace ( google.golang.org/grpc => google.golang.org/grpc v1.26.0 ) -require ( - github.com/coreos/etcd v3.3.27+incompatible - go.etcd.io/etcd v3.3.27+incompatible -) +require github.com/coreos/etcd v3.3.27+incompatible require ( github.com/coreos/bbolt v1.3.4 // indirect diff --git a/go.sum b/go.sum index c09f39f..ebb042b 100644 --- a/go.sum +++ b/go.sum @@ -97,8 +97,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.etcd.io/bbolt v1.3.4 h1:hi1bXHMVrlQh6WwxAy+qZCV/SYIlqo+Ushwdpa4tAKg= go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= -go.etcd.io/etcd v3.3.27+incompatible h1:5hMrpf6REqTHV2LW2OclNpRtxI0k9ZplMemJsMSWju0= -go.etcd.io/etcd v3.3.27+incompatible/go.mod h1:yaeTdrJi5lOmYerz05bd8+V7KubZs8YSFZfzsF9A6aI= +github.com/coreos/etcd v3.3.27+incompatible h1:5hMrpf6REqTHV2LW2OclNpRtxI0k9ZplMemJsMSWju0= +github.com/coreos/etcd v3.3.27+incompatible/go.mod h1:yaeTdrJi5lOmYerz05bd8+V7KubZs8YSFZfzsF9A6aI= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= diff --git a/init.go b/init.go index 52b6a5b..9e9beb4 100644 --- a/init.go +++ b/init.go @@ -9,7 +9,7 @@ package etcd import ( "errors" - "go.etcd.io/etcd/clientv3" + "github.com/coreos/etcd/clientv3" "sync" ) diff --git a/lease.go b/lease.go index 765d7de..d357914 100644 --- a/lease.go +++ b/lease.go @@ -12,7 +12,7 @@ import ( "time" "errors" - "go.etcd.io/etcd/clientv3" + "github.com/coreos/etcd/clientv3" ) // LeaseOnce 申请一个一次性租约 diff --git a/string.go b/string.go index 09cb270..19eb00a 100644 --- a/string.go +++ b/string.go @@ -11,8 +11,8 @@ import ( "context" "time" + "github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/mvcc/mvccpb" - "go.etcd.io/etcd/clientv3" ) // Put put数据 diff --git a/watch.go b/watch.go index 95f9af4..ad569f9 100644 --- a/watch.go +++ b/watch.go @@ -12,7 +12,7 @@ import ( "math" "time" - "go.etcd.io/etcd/clientv3" + "github.com/coreos/etcd/clientv3" ) // WatchKeyWithOption ...