Skip to content

Commit

Permalink
Merge branch 'refactoring' of https://github.com/benbjohnson/etcd int…
Browse files Browse the repository at this point in the history
…o refactoring

Conflicts:
	server/registry.go
  • Loading branch information
benbjohnson committed Oct 13, 2013
2 parents ec24e76 + 2b9c4bc commit 55c1f45
Show file tree
Hide file tree
Showing 24 changed files with 955 additions and 965 deletions.
1 change: 0 additions & 1 deletion etcd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func TestSingleNode(t *testing.T) {

time.Sleep(time.Second)

etcd.OpenDebug()
c := etcd.NewClient()

c.SyncCluster()
Expand Down
16 changes: 8 additions & 8 deletions server/join_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ func init() {

// The JoinCommand adds a node to the cluster.
type JoinCommand struct {
RaftVersion string `json:"raftVersion"`
Name string `json:"name"`
RaftURL string `json:"raftURL"`
EtcdURL string `json:"etcdURL"`
RaftVersion string `json:"raftVersion"`
Name string `json:"name"`
RaftURL string `json:"raftURL"`
EtcdURL string `json:"etcdURL"`
}

func NewJoinCommand(version, name, raftUrl, etcdUrl string) *JoinCommand {
return &JoinCommand{
RaftVersion: version,
Name: name,
RaftURL: raftUrl,
EtcdURL: etcdUrl,
RaftVersion: version,
Name: name,
RaftURL: raftUrl,
EtcdURL: etcdUrl,
}
}

Expand Down
Loading

0 comments on commit 55c1f45

Please sign in to comment.