Parakeet is a Rust-based Bluesky AppServer aiming to implement most of the functionality required to support the Bluesky client
appview atproto bluesky rust appserver
69
fork

Configure Feed

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

fix(consumer): formatting and clippy

+6 -9
+2 -4
consumer/src/backfill/mod.rs
··· 203 203 return Err(diesel::result::Error::RollbackTransaction.into()); 204 204 }; 205 205 206 - counter!("backfilled_commits", "collection" => collection.to_string()) 207 - .increment(1); 206 + counter!("backfilled_commits", "collection" => collection.to_string()).increment(1); 208 207 209 208 let full_path = format!("at://{did}/{path}"); 210 209 211 - indexer::index_op(conn, &mut delta_store, did, cid, record, &full_path, rkey) 212 - .await? 210 + indexer::index_op(conn, &mut delta_store, did, cid, record, &full_path, rkey).await? 213 211 } 214 212 215 213 db::update_repo_sync_state(conn, did, ActorSyncState::Synced).await?;
+1 -1
consumer/src/cmd.rs
··· 15 15 16 16 pub fn parse() -> Cli { 17 17 Cli::parse() 18 - } 18 + }
+2 -3
consumer/src/indexer/mod.rs
··· 203 203 let expected_in_doc = did_doc.also_known_as.is_some_and(|v| { 204 204 v.iter() 205 205 .filter_map(|v| v.strip_prefix("at://")) 206 - .find(|v| v == &expected) 207 - .is_some() 206 + .any(|v| v == &expected) 208 207 }); 209 208 210 209 // if it isn't, set to invalid. ··· 216 215 // in theory, we can use com.atproto.identity.resolveHandle against a PDS, but that seems 217 216 // like a way to end up with really sus handles. 218 217 let Some(handle_did) = state.resolver.resolve_handle(&expected).await? else { 219 - Ok(Some(None)) 218 + return Ok(Some(None)); 220 219 }; 221 220 222 221 // finally, check if the event did matches the handle, if not, set invalid, otherwise set the handle.
+1 -1
consumer/src/main.rs
··· 80 80 idxc_tx, 81 81 resolver.clone(), 82 82 relay_firehose, 83 - indexer_opts 83 + indexer_opts, 84 84 ) 85 85 .await?; 86 86