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

Method bump_node

plugins/rest-plugin/src/yaml.rs:46–57  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

44
45impl<'a> Budget<'a> {
46 fn bump_node<E>(&self) -> Result<(), E>
47 where
48 E: de::Error,
49 {
50 self.nodes.set(self.nodes.get() + 1);
51 if self.nodes.get() > MAX_YAML_NODES {
52 return Err(E::custom(format!(
53 "YAML body expands to more than {MAX_YAML_NODES} nodes"
54 )));
55 }
56 Ok(())
57 }
58
59 fn add_bytes<E>(&self, n: usize) -> Result<(), E>
60 where

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected