awc-example: borrow more in AwcClient

This commit is contained in:
Aode (lion) 2021-11-20 13:23:55 -06:00
parent 5bcbcebb24
commit 0b8c7e8fe3

View file

@ -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()?);