mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix compile bug in peer_server_handlers.go
resp.Success is a func() bool, not a bool. Call it.
This commit is contained in:
@@ -71,7 +71,7 @@ func (ps *PeerServer) AppendEntriesHttpHandler(w http.ResponseWriter, req *http.
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !resp.Success {
|
if !resp.Success() {
|
||||||
log.Debugf("[Append Entry] Step back")
|
log.Debugf("[Append Entry] Step back")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user