| Crates.io | cu-ratelimit |
| lib.rs | cu-ratelimit |
| version | 0.9.1 |
| created_at | 2025-05-26 23:31:44.013916+00 |
| updated_at | 2025-09-12 20:32:58.664666+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 | 52,218 |
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.