MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / limit_for_method

Function limit_for_method

ra-rpc/src/rocket_helper.rs:332–337  ·  view source on GitHub ↗
(method: &str, limits: &Limits)

Source from the content-addressed store, hash-verified

330}
331
332fn limit_for_method(method: &str, limits: &Limits) -> ByteUnit {
333 if let Some(v) = limits.get(method) {
334 return v;
335 }
336 10.mebibytes()
337}
338
339#[derive(bon::Builder)]
340pub struct PrpcHandler<'s, 'r, S> {

Callers 1

handle_prpc_implFunction · 0.85

Calls 1

getMethod · 0.45

Tested by 1

handle_prpc_implFunction · 0.68