🚑️: avoid opening session when not necessary

This commit is contained in:
VC
2024-10-03 09:38:50 +02:00
parent f46f90ad34
commit 6a7eef757a
4 changed files with 22 additions and 12 deletions

View File

@@ -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,