Expand description
A Session implementation for limiting requests to domains that consistently fail
use apub_breaker_session::BreakerSession;
use std::time::Duration;
// Create a session that refuses requests for an hour after 10 consecutive failures to a given domain
let breaker_session = BreakerSession::limit(10, Duration::from_secs(60 * 60));Structsยง
- Breaker
Session - The BreakerSession type