(p: &Plugin<State>, v: serde_json::Value)
| 142 | } |
| 143 | |
| 144 | async fn handle_htlc_safe(p: &Plugin<State>, v: serde_json::Value) -> serde_json::Value { |
| 145 | match handle_htlc_inner(p, v).await { |
| 146 | Ok(response) => response, |
| 147 | Err(e) => { |
| 148 | error!("HTLC hook error (continuing): {:#}", e); |
| 149 | json_continue() |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | async fn handle_htlc_inner( |
| 155 | p: &Plugin<State>, |
no test coverage detected