1 2 3 4 5 6
use std::sync::Arc; use tokio::sync::Semaphore; pub struct RateLimiter { pub semaphore: Arc<Semaphore>, }