Skip to content

Commit

Permalink
client: fix syntax error with VersionResponse struct tags
Browse files Browse the repository at this point in the history
this fixes a syntax error with the json struct tags used for the
VersionResponse struct.
  • Loading branch information
shaunthium committed Sep 21, 2016
1 parent 0fbdb83 commit 8f4d4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ func (c *httpClusterClient) AutoSync(ctx context.Context, interval time.Duration
type VersionResponse struct {
// ServerVersion represents the version of the current server
// that the client is running on.
ServerVersion string `json: "server_version"`
ServerVersion string `json:"server_version"`

// ClusterVersion represents the cluster architecture version
// of the current cluster.
ClusterVersion string `json: "cluster_version"`
ClusterVersion string `json:"cluster_version"`
}

func (c *httpClusterClient) GetVersion(ctx context.Context) (*VersionResponse, error) {
Expand Down

0 comments on commit 8f4d4e4

Please sign in to comment.