MCPcopy Create free account
hub / github.com/0xMiden/node / check

Method check

crates/utils/src/limiter.rs:33–42  ·  view source on GitHub ↗

Do the actual check.

(size: usize)

Source from the content-addressed store, hash-verified

31 const LIMIT: usize;
32 /// Do the actual check.
33 fn check(size: usize) -> Result<(), QueryLimitError> {
34 if size > Self::LIMIT {
35 Err(QueryLimitError {
36 which: Self::PARAM_NAME,
37 size,
38 limit: Self::LIMIT,
39 })?;
40 }
41 Ok(())
42 }
43}
44
45/// Maximum payload size (in bytes) for paginated responses returned by the store.

Callers

nothing calls this directly

Implementers 1

limiter.rscrates/utils/src/limiter.rs

Calls

no outgoing calls

Tested by

no test coverage detected