Simplify imports and improve comments.

This commit is contained in:
Piotr Tabor
2022-04-04 20:33:46 +02:00
parent 4e04770bac
commit c78bf655a7
4 changed files with 8 additions and 7 deletions

View File

@@ -17,13 +17,13 @@ package v3rpc
import (
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/server/v3/etcdserver"
apply2 "go.etcd.io/etcd/server/v3/etcdserver/apply"
"go.etcd.io/etcd/server/v3/etcdserver/apply"
)
type header struct {
clusterID int64
memberID int64
sg apply2.RaftStatusGetter
sg apply.RaftStatusGetter
rev func() int64
}

View File

@@ -26,7 +26,7 @@ import (
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
"go.etcd.io/etcd/server/v3/auth"
"go.etcd.io/etcd/server/v3/etcdserver"
apply2 "go.etcd.io/etcd/server/v3/etcdserver/apply"
"go.etcd.io/etcd/server/v3/etcdserver/apply"
"go.etcd.io/etcd/server/v3/storage/mvcc"
"go.uber.org/zap"
@@ -42,7 +42,7 @@ type watchServer struct {
maxRequestBytes int
sg apply2.RaftStatusGetter
sg apply.RaftStatusGetter
watchable mvcc.WatchableKV
ag AuthGetter
}
@@ -125,7 +125,7 @@ type serverWatchStream struct {
maxRequestBytes int
sg apply2.RaftStatusGetter
sg apply.RaftStatusGetter
watchable mvcc.WatchableKV
ag AuthGetter