Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0

Configure Feed

Select the types of activity you want to include in your feed.

for fmt

+4 -5
+4 -5
ufos/src/storage_fjall.rs
··· 1155 1155 )?; 1156 1156 1157 1157 let did = Did::new("did:plc:inze6wrmsm7pjl7yta3oig77".to_string()).unwrap(); 1158 + let cid: Cid = "bafyreidofvwoqvd2cnzbun6dkzgfucxh57tirf3ohhde7lsvh4fu3jehgy" 1159 + .parse() 1160 + .unwrap(); 1158 1161 let event = CommitEvent { 1159 1162 collection: Nsid::new("a.b.c".to_string()).unwrap(), 1160 1163 rkey: RecordKey::new("asdf".to_string()).unwrap(), 1161 1164 rev: "asdf".to_string(), 1162 1165 operation: CommitOp::Create, 1163 1166 record: Some(*Box::new(RawValue::from_string("{}".to_string()).unwrap())), 1164 - cid: Some( 1165 - "bafyreidofvwoqvd2cnzbun6dkzgfucxh57tirf3ohhde7lsvh4fu3jehgy" 1166 - .parse() 1167 - .unwrap(), 1168 - ), 1167 + cid: Some(cid), 1169 1168 }; 1170 1169 let (commit, collection) = 1171 1170 UFOsCommit::from_commit_info(event, did.clone(), Cursor::from_raw_u64(100))?;