mirror of
https://framagit.org/veretcle/oolatoocs.git
synced 2025-12-06 14:53:15 +01:00
🚑️: avoid opening session when not necessary
This commit is contained in:
@@ -16,13 +16,6 @@ pub struct BskyReply {
|
||||
pub root_record_uri: String,
|
||||
}
|
||||
|
||||
pub async fn get_session(user: &str, pass: &str) -> Result<BskyAgent, Box<dyn Error>> {
|
||||
let agent = BskyAgent::builder().build().await?;
|
||||
agent.login(user, pass).await?;
|
||||
|
||||
Ok(agent)
|
||||
}
|
||||
|
||||
pub async fn build_post_record(
|
||||
config: &BlueskyConfig,
|
||||
text: &str,
|
||||
|
||||
Reference in New Issue
Block a user