Checking once more

This commit is contained in:
Igor Katson 2024-05-03 11:24:10 +01:00
parent 640d2c31bc
commit 86c95e7c71
2 changed files with 8 additions and 7 deletions

View file

@ -105,9 +105,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
) -> anyhow::Result<()> {
use tokio::io::AsyncWriteExt;
if self.addr.ip().to_string() != "213.189.217.38" {
bail!("bad ip")
}
// if self.addr.ip().to_string() != "213.189.217.38" {
// bail!("bad ip")
// }
let rwtimeout = self
.options
@ -153,9 +153,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
&self,
outgoing_chan: tokio::sync::mpsc::UnboundedReceiver<WriterRequest>,
) -> anyhow::Result<()> {
if self.addr.ip().to_string() != "213.189.217.38" {
bail!("bad ip")
}
// if self.addr.ip().to_string() != "213.189.217.38" {
// bail!("bad ip")
// }
use tokio::io::AsyncWriteExt;
let rwtimeout = self

View file

@ -300,7 +300,8 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
default_defer_writes: opts.defer_writes,
default_storage_factory: Some({
fn wrap<S: StorageFactory + Clone>(s: S) -> impl StorageFactory {
TimingStorageFactory::new("hdd".to_owned(), SlowStorageFactory::new(s))
// TimingStorageFactory::new("hdd".to_owned(), SlowStorageFactory::new(s))
TimingStorageFactory::new("hdd".to_owned(), s)
}
if opts.experimental_mmap_storage {