Skip to content

Commit

Permalink
Update xrpc and xrpc-client version
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Nov 22, 2023
1 parent cd9b42d commit ded31e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions atrium-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT"
keywords = ["atproto", "bluesky"]

[dependencies]
atrium-xrpc = "0.7.0"
atrium-xrpc = "0.8.0"
async-trait = "0.1.68"
cid = { version = "0.10.1", features = ["serde-codec"] }
http = "0.2.9"
Expand All @@ -24,7 +24,7 @@ default = ["agent"]
agent = ["tokio/sync"]

[dev-dependencies]
atrium-xrpc-client = "0.1"
atrium-xrpc-client = "0.2.0"
futures = "0.3.28"
serde_json = "1.0.107"
tokio = { version = "1.33.0", features = ["test-util", "macros"] }
Expand Down
8 changes: 4 additions & 4 deletions atrium-api/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl<T> XrpcClient for SessionAuthWrapper<T>
where
T: XrpcClient + Send + Sync,
{
fn base_uri(&self) -> &str {
fn base_uri(&self) -> String {
self.inner.base_uri()
}
async fn auth(&self, is_refresh: bool) -> Option<String> {
Expand Down Expand Up @@ -157,7 +157,7 @@ impl<T> XrpcClient for RefreshWrapper<T>
where
T: XrpcClient + Send + Sync,
{
fn base_uri(&self) -> &str {
fn base_uri(&self) -> String {
self.inner.base_uri()
}
async fn auth(&self, is_refresh: bool) -> Option<String> {
Expand Down Expand Up @@ -341,8 +341,8 @@ mod tests {
}

impl XrpcClient for DummyClient {
fn base_uri(&self) -> &str {
"http://localhost:8080"
fn base_uri(&self) -> String {
"http://localhost:8080".into()
}
}

Expand Down

0 comments on commit ded31e4

Please sign in to comment.