MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / update_rate_limit

Method update_rate_limit

ipld/resolver/src/client.rs:68–71  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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<()> {

Callers 1

handle_requestMethod · 0.45

Calls 1

send_requestMethod · 0.80

Tested by

no test coverage detected