瀏覽代碼

Fix compile bug in peer_server_handlers.go

resp.Success is a func() bool, not a bool.  Call it.
augustoroman 12 年之前
父節點
當前提交
e1ed380f04
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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
 	}
 
-	if !resp.Success {
+	if !resp.Success() {
 		log.Debugf("[Append Entry] Step back")
 	}