mount an atproto PDS repository as a FUSE filesystem oppi.li/posts/mounting_the_atmosphere/

Watch live changes from the firehose #11

closed opened by danabra.mov targeting main from danabra.mov/pdsfs: firehose
Labels

None yet.

Participants 1
AT URI
at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/sh.tangled.repo.pull/3m34e5c724p22
+1 -1
Diff #1
+1 -1
src/fs.rs
··· 473 let mut repos = self.repos.lock().unwrap(); 474 let repo = &mut repos[&did]; 475 if let Ok(Some(val)) = self.rt.block_on(repo.get_raw::<ipld_core::ipld::Ipld>(&key)) { 476 - reply.data(&serde_json::to_string(&val).unwrap().as_bytes()[offset as usize..]); 477 return; 478 } 479 } else {
··· 473 let mut repos = self.repos.lock().unwrap(); 474 let repo = &mut repos[&did]; 475 if let Ok(Some(val)) = self.rt.block_on(repo.get_raw::<ipld_core::ipld::Ipld>(&key)) { 476 + reply.data(&serde_json::to_string_pretty(&val).unwrap().as_bytes()[offset as usize..]); 477 return; 478 } 479 } else {

Submissions

sign up or login to add to the discussion
danabra.mov submitted #1
1 commit
expand
pretty print json
danabra.mov

fml this is too hard

danabra.mov

let me just resubmit everything as a stack

closed without merging
danabra.mov submitted #0
4 commits
expand
show files as .json
initialize tokio once
disable cache
watch firehose
danabra.mov

i guess "firehose" is inaccurate, the code just watches the pds. but whatever