Update the rate limit based on new projections for the same timeframe the `content::Behaviour` was originally configured with. This can be used if we can't come up with a good estimate for the amount of data we have to serve from the subnets we participate in, but we can adjust them on the fly based on what we observe on chain.
(&self, bytes: u32)
| 66 | /// we have to serve from the subnets we participate in, but we can adjust |
| 67 | /// them on the fly based on what we observe on chain. |
| 68 | pub fn update_rate_limit(&self, bytes: u32) -> anyhow::Result<()> { |
| 69 | let req = Request::UpdateRateLimit(bytes); |
| 70 | self.send_request(req) |
| 71 | } |
| 72 | |
| 73 | /// Publish a signed vote into a topic based on its subnet. |
| 74 | pub fn publish_vote(&self, vote: SignedVoteRecord<V>) -> anyhow::Result<()> { |
no test coverage detected