Upgrade to latest atrium-api
Some breakage there, but nothing major. They also have AtpAgent now so maybe we can get rid of our custom session-refreshing thing?
This commit is contained in:
parent
b0f9b9618c
commit
524598a40b
|
@ -163,9 +163,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "atrium-api"
|
name = "atrium-api"
|
||||||
version = "0.9.1"
|
version = "0.11.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "328806e40f0fcb646f40d559eb4d9e204f04899b30082d8dd0c4f0aab6ba02bd"
|
checksum = "bc9e9a28946f4bddb0b3efaf84e018f242432f4759a791e4fc6c3a6e43d14ac9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"atrium-xrpc",
|
"atrium-xrpc",
|
||||||
|
@ -173,13 +173,14 @@ dependencies = [
|
||||||
"http",
|
"http",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_bytes",
|
"serde_bytes",
|
||||||
|
"tokio",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "atrium-xrpc"
|
name = "atrium-xrpc"
|
||||||
version = "0.4.0"
|
version = "0.4.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "35c68d93cfc911c693310c5a1618c7614c1d45765218b054d77663ff227b29f1"
|
checksum = "b8880c7efbe9750010ef44143d0aadca92d0bd45ccf4682752385e9f34af3739"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"http",
|
"http",
|
||||||
|
|
|
@ -9,8 +9,8 @@ default-run = "nederlandskie"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.75"
|
anyhow = "1.0.75"
|
||||||
async-trait = "0.1.74"
|
async-trait = "0.1.74"
|
||||||
atrium-api = "0.9.1"
|
atrium-api = "0.11.0"
|
||||||
atrium-xrpc = "0.4.0"
|
atrium-xrpc = "0.4.1"
|
||||||
axum = "0.6.20"
|
axum = "0.6.20"
|
||||||
chat-gpt-lib-rs = "0.2.1"
|
chat-gpt-lib-rs = "0.2.1"
|
||||||
chrono = "0.4.31"
|
chrono = "0.4.31"
|
||||||
|
|
|
@ -5,7 +5,6 @@ use std::sync::Mutex;
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use atrium_api::blob::BlobRef;
|
use atrium_api::blob::BlobRef;
|
||||||
use atrium_api::client::AtpServiceClient;
|
use atrium_api::client::AtpServiceClient;
|
||||||
use atrium_api::client::AtpServiceWrapper;
|
|
||||||
use atrium_api::records::Record;
|
use atrium_api::records::Record;
|
||||||
use axum::http::StatusCode;
|
use axum::http::StatusCode;
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
|
@ -18,7 +17,7 @@ use super::internals::xrpc::AuthenticateableXrpcClient;
|
||||||
use super::streaming::{handle_message, CommitProcessor};
|
use super::streaming::{handle_message, CommitProcessor};
|
||||||
|
|
||||||
pub struct Bluesky {
|
pub struct Bluesky {
|
||||||
client: AtpServiceClient<AtpServiceWrapper<AuthenticateableXrpcClient>>,
|
client: AtpServiceClient<AuthenticateableXrpcClient>,
|
||||||
session: Option<Arc<Mutex<Session>>>,
|
session: Option<Arc<Mutex<Session>>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue