MCPcopy Create free account
hub / github.com/ElementsProject/lightning / inner

Function inner

plugins/rest-plugin/src/handlers.rs:295–305  ·  view source on GitHub ↗
(e: &(dyn std::error::Error + 'static))

Source from the content-addressed store, hash-verified

293
294fn is_body_too_large(e: &axum::Error) -> bool {
295 fn inner(e: &(dyn std::error::Error + 'static)) -> bool {
296 if e.downcast_ref::<http_body_util::LengthLimitError>()
297 .is_some()
298 {
299 return true;
300 }
301 match e.source() {
302 Some(src) => inner(src),
303 None => false,
304 }
305 }
306 inner(e)
307}
308

Callers 1

is_body_too_largeFunction · 0.70

Calls 1

sourceMethod · 0.80

Tested by

no test coverage detected