reqwest-example: re-borrow session
This commit is contained in:
parent
8e84fd2387
commit
0b30921a41
|
@ -17,7 +17,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let session = (RequestCountSession::max(30), &breakers);
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
let reqwest_client = ReqwestClient::new(&client, session, &config, &crypto);
|
||||
let reqwest_client = ReqwestClient::new(&client, &session, &config, &crypto);
|
||||
|
||||
let id: ObjectId<NoteType> =
|
||||
object_id("https://masto.asonix.dog/users/asonix/statuses/107289461429162429".parse()?);
|
||||
|
|
Loading…
Reference in a new issue