v3rpc: move Hash RPC to Maintenance service

This commit is contained in:
Anthony Romano
2016-03-28 17:15:58 -07:00
parent 6e3a0948e4
commit 3fbacf4be2
10 changed files with 158 additions and 139 deletions

View File

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