async fn process_chunk( chunk: StreamChunk, rate_limit_rps: Option<u32>, limiter: &RateLimiter, ) -> StreamChunk