summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/repo.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-03 18:19:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-03 18:19:22 -0700
commit95c05cc53c5b42b535cf70f8cee69c1a0be958b7 (patch)
treeafe00f175bf83228f319fbc214c0ba81f7cb6dfd /adenosine-pds/src/repo.rs
parent2004d5ea148b8b21cd0cffeb82fd8f07f52d1ba7 (diff)
downloadadenosine-95c05cc53c5b42b535cf70f8cee69c1a0be958b7.tar.gz
adenosine-95c05cc53c5b42b535cf70f8cee69c1a0be958b7.zip
pds: various bugfixes
Diffstat (limited to 'adenosine-pds/src/repo.rs')
-rw-r--r--adenosine-pds/src/repo.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/adenosine-pds/src/repo.rs b/adenosine-pds/src/repo.rs
index 419d23f..5351379 100644
--- a/adenosine-pds/src/repo.rs
+++ b/adenosine-pds/src/repo.rs
@@ -166,7 +166,6 @@ impl RepoStore {
pub fn write_root(
&mut self,
- did: &str,
meta_cid: &str,
prev: Option<&str>,
mst_cid: &str,
@@ -228,9 +227,9 @@ impl RepoStore {
/// The "from" commit CID feature is not implemented.
pub fn write_car<W: std::io::Write>(
&mut self,
- did: &str,
+ _did: &str,
_from_commit_cid: Option<&str>,
- out: &mut W,
+ _out: &mut W,
) -> Result<()> {
unimplemented!()
}
@@ -271,9 +270,7 @@ fn test_repo_mst() {
// create root and commit IPLD nodes
let meta_cid = repo.write_metadata(did).unwrap();
- let simple_root_cid = repo
- .write_root(did, &meta_cid, None, &simple_map_cid)
- .unwrap();
+ let simple_root_cid = repo.write_root(&meta_cid, None, &simple_map_cid).unwrap();
let simple_commit_cid = repo
.write_commit(did, &simple_root_cid, "dummy-sig")
.unwrap();
@@ -299,7 +296,7 @@ fn test_repo_mst() {
map.insert("/records/3".to_string(), record_cid.clone());
let simple3_map_cid: String = repo.mst_from_map(&map).unwrap();
let simple3_root_cid = repo
- .write_root(did, &meta_cid, Some(&simple_commit_cid), &simple3_map_cid)
+ .write_root(&meta_cid, Some(&simple_commit_cid), &simple3_map_cid)
.unwrap();
let simple3_commit_cid = repo
.write_commit(did, &simple3_root_cid, "dummy-sig3")