Restore simulation
This commit is contained in:
parent
86c95e7c71
commit
16a28a4d96
2 changed files with 8 additions and 8 deletions
|
|
@ -105,9 +105,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
use tokio::io::AsyncWriteExt;
|
use tokio::io::AsyncWriteExt;
|
||||||
|
|
||||||
// if self.addr.ip().to_string() != "213.189.217.38" {
|
if self.addr.ip().to_string() != "213.189.217.38" {
|
||||||
// bail!("bad ip")
|
bail!("bad ip")
|
||||||
// }
|
}
|
||||||
|
|
||||||
let rwtimeout = self
|
let rwtimeout = self
|
||||||
.options
|
.options
|
||||||
|
|
@ -153,9 +153,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
||||||
&self,
|
&self,
|
||||||
outgoing_chan: tokio::sync::mpsc::UnboundedReceiver<WriterRequest>,
|
outgoing_chan: tokio::sync::mpsc::UnboundedReceiver<WriterRequest>,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
// if self.addr.ip().to_string() != "213.189.217.38" {
|
if self.addr.ip().to_string() != "213.189.217.38" {
|
||||||
// bail!("bad ip")
|
bail!("bad ip")
|
||||||
// }
|
}
|
||||||
|
|
||||||
use tokio::io::AsyncWriteExt;
|
use tokio::io::AsyncWriteExt;
|
||||||
let rwtimeout = self
|
let rwtimeout = self
|
||||||
|
|
|
||||||
|
|
@ -300,8 +300,8 @@ async fn async_main(opts: Opts) -> anyhow::Result<()> {
|
||||||
default_defer_writes: opts.defer_writes,
|
default_defer_writes: opts.defer_writes,
|
||||||
default_storage_factory: Some({
|
default_storage_factory: Some({
|
||||||
fn wrap<S: StorageFactory + Clone>(s: S) -> impl StorageFactory {
|
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)
|
// TimingStorageFactory::new("hdd".to_owned(), s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.experimental_mmap_storage {
|
if opts.experimental_mmap_storage {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue