update go mod

This commit is contained in:
白茶清欢 2023-02-07 14:37:36 +08:00
parent 28ebb480f7
commit 77d5a7e294
3 changed files with 8 additions and 9 deletions

13
go.mod
View File

@ -2,13 +2,9 @@ module git.zhangdeman.cn/zhangdeman/etcd
go 1.17
replace github.com/coreos/bbolt v1.3.4 => go.etcd.io/bbolt v1.3.4
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0
require (
github.com/coreos/etcd v3.3.27+incompatible
github.com/pkg/errors v0.9.1
replace (
github.com/coreos/bbolt v1.3.4 => go.etcd.io/bbolt v1.3.4
google.golang.org/grpc => google.golang.org/grpc v1.26.0
)
require (
@ -47,6 +43,8 @@ require (
sigs.k8s.io/yaml v1.3.0 // indirect
)
require github.com/coreos/etcd v3.3.27+incompatible
require (
github.com/Jeffail/gabs v1.4.0 // indirect
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect
@ -56,6 +54,7 @@ require (
github.com/google/uuid v1.3.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/stretchr/testify v1.8.1 // indirect

View File

@ -8,8 +8,8 @@
package etcd
import (
"errors"
"github.com/coreos/etcd/clientv3"
"github.com/pkg/errors"
)
var (

View File

@ -11,8 +11,8 @@ import (
"context"
"time"
"errors"
"github.com/coreos/etcd/clientv3"
"github.com/pkg/errors"
)
// LeaseOnce 申请一个一次性租约