Skip to content

Commit

Permalink
tiny clean
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed May 17, 2017
1 parent 48be683 commit c47d5b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ type RaftCluster struct {

// ClusterStatus saves some state information
type ClusterStatus struct {
// use pointer to omitempty
BootstrapTime *time.Time `json:"raft_bootstrap_time,omitempty"`
}

Expand Down Expand Up @@ -217,7 +216,7 @@ func (s *Server) GetClusterStatus() (*ClusterStatus, error) {
return nil, errors.Trace(err)
}
clone := &ClusterStatus{}
*clone = *(s.cluster.status)
*clone = *s.cluster.status
return clone, nil
}

Expand Down

0 comments on commit c47d5b1

Please sign in to comment.