Skip to content

Commit 282322d

Browse files
committed
Fix a typo
1 parent 74eb316 commit 282322d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

etcdClient.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@ func (ep *etcdPlugin) GetLocalAddr() (string, error) {
175175
}
176176

177177
// Get ep state from etcd
178-
if _, err := httpGetJSON("http://localhost:2379/v2/stats/ep", &epData); err != nil {
179-
log.Errorf("Error getting ep state. Err: %v", err)
180-
return "", errors.New("Error getting ep state")
178+
if _, err := httpGetJSON("http://localhost:2379/v2/stats/self", &epData); err != nil {
179+
log.Errorf("Error getting self state. Err: %v", err)
180+
return "", errors.New("Error getting self state")
181181
}
182182

183183
var memData memData
184184

185185
// Get member list from etcd
186186
if _, err := httpGetJSON("http://localhost:2379/v2/members", &memData); err != nil {
187-
log.Errorf("Error getting ep state. Err: %v", err)
188-
return "", errors.New("Error getting ep state")
187+
log.Errorf("Error getting members state. Err: %v", err)
188+
return "", errors.New("Error getting members state")
189189
}
190190

191191
myName := epData.Name

0 commit comments

Comments
 (0)