move ServerVersion to DiscoveryClient

This commit is contained in:
Chao Xu
2016-01-05 11:55:34 -08:00
parent 6cbedf2f0b
commit 144b5acd08
11 changed files with 41 additions and 70 deletions

View File

@@ -157,7 +157,7 @@ func MatchesServerVersion(client *Client, c *Config) error {
}
}
clientVersion := version.Get()
serverVersion, err := client.ServerVersion()
serverVersion, err := client.Discovery().ServerVersion()
if err != nil {
return fmt.Errorf("couldn't read version from server: %v\n", err)
}