Fix compile bug in peer_server_handlers.go

resp.Success is a func() bool, not a bool.  Call it.
This commit is contained in:
augustoroman
2014-01-30 15:31:36 -08:00
parent a542a7804b
commit e1ed380f04

View File

@@ -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")
} }