awc-example: borrow more in AwcClient
This commit is contained in:
parent
5bcbcebb24
commit
0b8c7e8fe3
|
@ -14,11 +14,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
let breakers = BreakerSession::limit(10, Duration::from_secs(60 * 60));
|
||||
|
||||
let session = (RequestCountSession::max(30), breakers);
|
||||
let session = (RequestCountSession::max(30), &breakers);
|
||||
|
||||
let client = awc::Client::new();
|
||||
|
||||
let awc_client = AwcClient::new(&client, &session, config, crypto);
|
||||
let awc_client = AwcClient::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