LemmyError,
};
use rand::rngs::ThreadRng;
-use reqwest::Client;
+use reqwest_middleware::ClientWithMiddleware;
use serde::Serialize;
use serde_json::Value;
use std::{
message_handler_crud: MessageHandlerCrudType,
/// An HTTP Client
- client: Client,
+ client: ClientWithMiddleware,
activity_queue: QueueHandle,
}
rate_limiter: RateLimit,
message_handler: MessageHandlerType,
message_handler_crud: MessageHandlerCrudType,
- client: Client,
+ client: ClientWithMiddleware,
activity_queue: QueueHandle,
settings: Settings,
secret: Secret,