Hacked in mmap default

This commit is contained in:
Igor Katson 2024-05-02 19:43:09 +01:00
parent 79a523f2fe
commit 07a5b69a25
4 changed files with 18 additions and 21 deletions

View file

@ -103,9 +103,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
handshake: Handshake<ByteBufOwned>,
mut conn: tokio::net::TcpStream,
) -> anyhow::Result<()> {
if self.addr.ip().to_string() != "213.189.217.38" {
bail!("DEBUG, NOT MY PEER")
}
// if self.addr.ip().to_string() != "213.189.217.38" {
// bail!("DEBUG, NOT MY PEER")
// }
use tokio::io::AsyncWriteExt;
let rwtimeout = self
@ -153,9 +153,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
outgoing_chan: tokio::sync::mpsc::UnboundedReceiver<WriterRequest>,
) -> anyhow::Result<()> {
use tokio::io::AsyncWriteExt;
if self.addr.ip().to_string() != "213.189.217.38" {
bail!("DEBUG, NOT MY PEER")
}
// if self.addr.ip().to_string() != "213.189.217.38" {
// bail!("DEBUG, NOT MY PEER")
// }
let rwtimeout = self
.options