Sfoglia il codice sorgente

Fix compile bug in peer_server_handlers.go

resp.Success is a func() bool, not a bool.  Call it.
augustoroman 12 anni fa
parent
commit
e1ed380f04
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      server/peer_server_handlers.go

+ 1 - 1
server/peer_server_handlers.go

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