use http::{header::HeaderName, HeaderMap, HeaderValue};
use http_signature_normalization_actix::Config as ConfigActix;
use http_signature_normalization_reqwest::prelude::{Config, SignExt};
-use lemmy_utils::LemmyError;
+use lemmy_utils::{LemmyError, REQWEST_TIMEOUT};
use once_cell::sync::Lazy;
use openssl::{
hash::MessageDigest,
use reqwest_middleware::ClientWithMiddleware;
use serde::{Deserialize, Serialize};
use sha2::{Digest, Sha256};
-use std::{str::FromStr, time::Duration};
+use std::str::FromStr;
use tracing::debug;
use url::Url;
let request = client
.post(&inbox_url.to_string())
// signature is only valid for 10 seconds, so no reason to wait any longer
- .timeout(Duration::from_secs(10))
+ .timeout(REQWEST_TIMEOUT)
.headers(headers)
.signature_with_digest(
HTTP_SIG_CONFIG.clone(),