update go mod

This commit is contained in:
白茶清欢 2023-08-15 14:08:46 +08:00
parent 1cff60709c
commit f98497fc0d
8 changed files with 9 additions and 12 deletions

View File

@ -11,7 +11,7 @@ import (
"math"
"time"
"go.etcd.io/etcd/clientv3"
"github.com/coreos/etcd/clientv3"
)
// 初始化client各种默认配置

View File

@ -12,7 +12,7 @@ import (
"errors"
"time"
"go.etcd.io/etcd/clientv3"
"github.com/coreos/etcd/clientv3"
)
// DeleteWithOption ...

5
go.mod
View File

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

4
go.sum
View File

@ -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=

View File

@ -9,7 +9,7 @@ package etcd
import (
"errors"
"go.etcd.io/etcd/clientv3"
"github.com/coreos/etcd/clientv3"
"sync"
)

View File

@ -12,7 +12,7 @@ import (
"time"
"errors"
"go.etcd.io/etcd/clientv3"
"github.com/coreos/etcd/clientv3"
)
// LeaseOnce 申请一个一次性租约

View File

@ -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数据

View File

@ -12,7 +12,7 @@ import (
"math"
"time"
"go.etcd.io/etcd/clientv3"
"github.com/coreos/etcd/clientv3"
)
// WatchKeyWithOption ...