mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v3rpc: move Hash RPC to Maintenance service
This commit is contained in:
@@ -303,9 +303,9 @@ func (c *cluster) getRevisionHash() (map[string]int64, map[string]int64, error)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
kvc := pb.NewKVClient(conn)
|
||||
m := pb.NewMaintenanceClient(conn)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
resp, err := kvc.Hash(ctx, &pb.HashRequest{})
|
||||
resp, err := m.Hash(ctx, &pb.HashRequest{})
|
||||
cancel()
|
||||
conn.Close()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user