Skip to content

Commit f74975d

Browse files
committed
bsky-sdk cleanup
1 parent 4d17bba commit f74975d

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

bsky-sdk/src/agent.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub struct BskyAgent<T = ReqwestClient, S = MemoryMapStore<(), AtpSession>>
4242
where
4343
T: XrpcClient + Send + Sync,
4444
S: MapStore<(), AtpSession> + Send + Sync,
45+
S::Error: Send + Sync + 'static,
4546
{
4647
inner: Arc<AtpAgent<S, T>>,
4748
}
@@ -68,6 +69,7 @@ impl<T, S> BskyAgent<T, S>
6869
where
6970
T: XrpcClient + Send + Sync,
7071
S: MapStore<(), AtpSession> + Send + Sync,
72+
S::Error: Send + Sync + 'static,
7173
{
7274
/// Get the agent's current state as a [`Config`].
7375
pub async fn to_config(&self) -> Config {
@@ -250,6 +252,7 @@ impl<T, S> Deref for BskyAgent<T, S>
250252
where
251253
T: XrpcClient + Send + Sync,
252254
S: MapStore<(), AtpSession> + Send + Sync,
255+
S::Error: Send + Sync + 'static,
253256
{
254257
type Target = AtpAgent<S, T>;
255258

bsky-sdk/src/agent/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ impl<T, S> BskyAtpAgentBuilder<T, S>
3434
where
3535
T: XrpcClient + Send + Sync,
3636
S: MapStore<(), AtpSession> + Send + Sync,
37+
S::Error: Send + Sync + 'static,
3738
{
3839
/// Set the configuration for the agent.
3940
pub fn config(mut self, config: Config) -> Self {

bsky-sdk/src/record.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub trait Record<T, S>
1818
where
1919
T: XrpcClient + Send + Sync,
2020
S: MapStore<(), AtpSession> + Send + Sync,
21+
S::Error: Send + Sync + 'static,
2122
{
2223
fn list(
2324
agent: &BskyAgent<T, S>,
@@ -47,6 +48,7 @@ macro_rules! record_impl {
4748
where
4849
T: XrpcClient + Send + Sync,
4950
S: MapStore<(), AtpSession> + Send + Sync,
51+
S::Error: Send + Sync + 'static,
5052
{
5153
async fn list(
5254
agent: &BskyAgent<T, S>,
@@ -164,6 +166,7 @@ macro_rules! record_impl {
164166
where
165167
T: XrpcClient + Send + Sync,
166168
S: MapStore<(), AtpSession> + Send + Sync,
169+
S::Error: Send + Sync + 'static,
167170
{
168171
async fn list(
169172
agent: &BskyAgent<T, S>,

bsky-sdk/src/record/agent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ impl<T, S> BskyAgent<T, S>
1212
where
1313
T: XrpcClient + Send + Sync,
1414
S: MapStore<(), AtpSession> + Send + Sync,
15+
S::Error: Send + Sync + 'static,
1516
{
1617
/// Create a record with various types of data.
1718
/// For example, the Record families defined in [`KnownRecord`](atrium_api::record::KnownRecord) are supported.

0 commit comments

Comments
 (0)