Skip to content

Commit

Permalink
fix: checks
Browse files Browse the repository at this point in the history
  • Loading branch information
organizedgrime committed Nov 14, 2023
1 parent 66be8fc commit 354cda1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wnfs/src/private/directory.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{
encrypted::Encrypted, link::PrivateLink, PrivateDirectoryContentSerializable, PrivateFile,
PrivateForest, PrivateNode, PrivateNodeContentSerializable, PrivateNodeHeader, PrivateRef,
SnapshotKey, TemporalKey,
TemporalKey,
};
use crate::{error::FsError, traits::Id, SearchResult, WNFS_VERSION};
use anyhow::{bail, ensure, Result};
Expand Down
6 changes: 3 additions & 3 deletions wnfs/src/private/node/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ impl PrivateNodeHeader {
pub async fn store_snapshot(
&self,
store: &impl BlockStore,
rng: &mut impl RngCore,
_rng: &mut impl RngCore,
) -> Result<Cid> {
let snapshot_key = self.derive_temporal_key().derive_snapshot_key();
let _snapshot_key = self.derive_temporal_key().derive_snapshot_key();
let tuple = (self.inumber, self.bare_name.clone());
let cbor_bytes = serde_ipld_dagcbor::to_vec(&tuple)?;
// let ciphertext = snapshot_key.encrypt(&cbor_bytes, rng)?;
Expand All @@ -247,7 +247,7 @@ impl PrivateNodeHeader {

pub(crate) async fn load_snapshot(
cid: &Cid,
snapshot_key: &SnapshotKey,
_snapshot_key: &SnapshotKey,
store: &impl BlockStore,
) -> Result<PrivateNodeHeader> {
let cbor_bytes = store.get_block(cid).await?;
Expand Down
4 changes: 2 additions & 2 deletions wnfs/src/private/share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ pub mod sharer {
}

pub mod recipient {
use super::{sharer, SharePayload, SnapshotSharePointer, TemporalSharePointer};
use super::{sharer, SharePayload, TemporalSharePointer};
use crate::{
error::ShareError,
private::{PrivateForest, PrivateKey, PrivateNode, PrivateRef},
};
use anyhow::{bail, Result};
use anyhow::Result;
use sha3::Sha3_256;
use wnfs_common::BlockStore;
use wnfs_hamt::Hasher;
Expand Down

0 comments on commit 354cda1

Please sign in to comment.