Skip to content

Commit

Permalink
bsky-sdk cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
avdb13 committed Nov 21, 2024
1 parent 4d17bba commit f74975d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bsky-sdk/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub struct BskyAgent<T = ReqwestClient, S = MemoryMapStore<(), AtpSession>>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
inner: Arc<AtpAgent<S, T>>,
}
Expand All @@ -68,6 +69,7 @@ impl<T, S> BskyAgent<T, S>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
/// Get the agent's current state as a [`Config`].
pub async fn to_config(&self) -> Config {
Expand Down Expand Up @@ -250,6 +252,7 @@ impl<T, S> Deref for BskyAgent<T, S>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
type Target = AtpAgent<S, T>;

Expand Down
1 change: 1 addition & 0 deletions bsky-sdk/src/agent/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl<T, S> BskyAtpAgentBuilder<T, S>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
/// Set the configuration for the agent.
pub fn config(mut self, config: Config) -> Self {
Expand Down
3 changes: 3 additions & 0 deletions bsky-sdk/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub trait Record<T, S>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
fn list(
agent: &BskyAgent<T, S>,
Expand Down Expand Up @@ -47,6 +48,7 @@ macro_rules! record_impl {
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
async fn list(
agent: &BskyAgent<T, S>,
Expand Down Expand Up @@ -164,6 +166,7 @@ macro_rules! record_impl {
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
async fn list(
agent: &BskyAgent<T, S>,
Expand Down
1 change: 1 addition & 0 deletions bsky-sdk/src/record/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ impl<T, S> BskyAgent<T, S>
where
T: XrpcClient + Send + Sync,
S: MapStore<(), AtpSession> + Send + Sync,
S::Error: Send + Sync + 'static,
{
/// Create a record with various types of data.
/// For example, the Record families defined in [`KnownRecord`](atrium_api::record::KnownRecord) are supported.
Expand Down

0 comments on commit f74975d

Please sign in to comment.