Skip to content

Commit

Permalink
Fix errors in benches
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Oct 24, 2024
1 parent 0f9fb00 commit 39cb206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async fn create_hypercore(page_size: usize) -> Result<Hypercore, HypercoreError>
let storage = Storage::open(
|_| {
Box::pin(async move {
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits>)
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits + Send>)
})
},
false,
Expand All @@ -44,7 +44,7 @@ async fn create_hypercore(page_size: usize) -> Result<Hypercore, HypercoreError>
let storage = Storage::open(
|_| {
Box::pin(async move {
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits>)
Ok(Box::new(RandomAccessMemory::new(page_size)) as Box<dyn StorageTraits + Send>)
})
},
false,
Expand Down

0 comments on commit 39cb206

Please sign in to comment.