| Crates.io | cu-ratelimit |
| lib.rs | cu-ratelimit |
| version | 0.12.0 |
| created_at | 2025-05-26 23:31:44.013916+00 |
| updated_at | 2026-01-14 20:07:49.704987+00 |
| description | A simple generic rate limiter for Copper |
| homepage | https://github.com/copper-project |
| repository | https://github.com/copper-project/copper-rs |
| max_upload_size | |
| id | 1690414 |
| size | 46,369 |
If you have a source that is going too fast, you can use this simple task to skip over messages.
(
id: "rl1",
type: "cu_ratelimit::CuRateLimit<MyPayload>", // Set your type here
config: {
"rate": 10.0, // in Hz
},
),
[...]
rate: the maximum rate in HzIt will match the Input type, set it as a type specialization like ie: replace MyPayload to your actual type in the config.