Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
etcd: Pass etcd member struct by reference, not value
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lipovetsky authored and dlipovetsky committed Sep 18, 2018
1 parent af20ce3 commit 18879d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func MemberForID(members []*etcdserverpb.Member, id uint64) (*etcdserverpb.Membe
}

// Started checks whether the member has started.
func Started(member etcdserverpb.Member) bool {
func Started(member *etcdserverpb.Member) bool {
unstarted := (member.Name == "" && len(member.ClientURLs) == 0)
return !unstarted
}
Expand Down

0 comments on commit 18879d5

Please sign in to comment.