Skip to content

Commit

Permalink
tokio-fs bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Apr 18, 2024
1 parent a7965e1 commit 60764e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 3 additions & 4 deletions tokio-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ maintenance = { status = "actively-developed" }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dmds = "0.2"
async-trait = "0.1"
tokio = { version = "1.34", features = ["fs", "io-util", "time", "rt"] }
dmds = "0.4"
tokio = { version = "1.37", features = ["fs", "io-util", "time", "rt"] }
futures = { version = "0.3", features = ["executor"] }
dashmap = "5.5"
bytes = "1.5"
bytes = "1.6"
8 changes: 5 additions & 3 deletions tokio-fs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
//! Tokio async filesystem implementation of `dmds` [`IoHandle`].

#![warn(missing_docs)]

use std::{
path::{Path, PathBuf},
pin::Pin,
sync::Arc,
time::Duration,
};

use async_trait::async_trait;
use bytes::{BufMut, BytesMut};
use dashmap::DashSet;
use dmds::IoHandle;
Expand All @@ -29,7 +32,6 @@ pub struct FsHandle {
invalid_chunks: DashSet<Box<[usize]>>,
}

#[async_trait]
impl IoHandle for FsHandle {
type Read<'a> = FsReader<'a> where Self: 'a;

Expand Down Expand Up @@ -210,7 +212,7 @@ pub async fn daemon<T, const DIMS: usize>(
{
const LEAST_WRITES: usize = 1;

let _ = ShutdownHandle::new(world.clone());
let _handle = ShutdownHandle::new(world.clone());

loop {
tokio::time::sleep(write_interval).await;
Expand Down

0 comments on commit 60764e4

Please sign in to comment.