a
All checks were successful
/ upload (release) Successful in 36s

This commit is contained in:
pavel 2026-02-20 18:42:59 +01:00
commit f9e976c224
6 changed files with 135 additions and 95 deletions

View file

@ -36,9 +36,15 @@ pub struct CalendarClient {
impl CalendarClient {
pub fn new(base_url: String, authenticator: Arc<Authenticator>) -> Self {
let client = Client::builder()
.timeout(std::time::Duration::from_secs(30))
.connect_timeout(std::time::Duration::from_secs(10))
.build()
.unwrap_or_else(|_| Client::new());
Self {
base_url: base_url.trim_end_matches('/').to_string(),
client: Client::new(),
client,
authenticator,
token_state: RwLock::new(None),
}