summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-06 20:55:28 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-06 20:55:28 -0800
commit045a85eb39517464d4a300cc180ac8b834125dec (patch)
treef9fee18dd14e5031f132ef6ef884b07d0171db76 /adenosine-pds/src/lib.rs
parent3320e8fa5d120b8bc4917152114cf78cb0e504dc (diff)
downloadadenosine-045a85eb39517464d4a300cc180ac8b834125dec.tar.gz
adenosine-045a85eb39517464d4a300cc180ac8b834125dec.zip
pds: switch to adenosine-common for identifiers
Diffstat (limited to 'adenosine-pds/src/lib.rs')
-rw-r--r--adenosine-pds/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index a4b6114..5803782 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -1,4 +1,4 @@
-use adenosine_cli::{AtUri, Did, Nsid, Tid, TidLord};
+use adenosine_common::identifiers::{Did, Nsid, Tid, TidLord};
use anyhow::Context;
use anyhow::{anyhow, Result};
use libipld::Cid;
@@ -381,7 +381,7 @@ fn xrpc_post_handler(
w.rkey
.as_ref()
.map(|t| Tid::from_str(&t).unwrap())
- .unwrap_or_else(|| srv.tid_gen.next()),
+ .unwrap_or_else(|| srv.tid_gen.next_tid()),
json_value_into_ipld(w.value.clone()),
),
"update" => Mutation::Update(
@@ -419,7 +419,7 @@ fn xrpc_post_handler(
let last_commit = srv.repo.get_commit(&commit_cid)?;
let mutations: Vec<Mutation> = vec![Mutation::Create(
collection,
- srv.tid_gen.next(),
+ srv.tid_gen.next_tid(),
json_value_into_ipld(record),
)];
debug!("mutating tree");