Explorar el Código

server: don't print out errors that cannot be resolved

Yicheng Qin hace 12 años
padre
commit
ebafba0043
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      etcd/peer_hub.go

+ 2 - 1
etcd/peer_hub.go

@@ -130,7 +130,8 @@ func (h *peerHub) send(msg raft.Message) error {
 		if msg.IsMsgApp() {
 		if msg.IsMsgApp() {
 			h.serverStats.SendAppendReq(len(data))
 			h.serverStats.SendAppendReq(len(data))
 		}
 		}
-		return p.send(data)
+		p.send(data)
+		return nil
 	}
 	}
 	return errUnknownPeer
 	return errUnknownPeer
 }
 }