Skip to content

Commit d03024e

Browse files
nepetcdecker
authored andcommitted
errors: Add RpcErrConversion trait and cleanups
We add a trait that helps to implement conversions between cln_rpc errors and the error codes provided by a module. This also involved some cleanups, a convenience macro and some remaning Signed-off-by: Peter Neuroth <[email protected]>
1 parent 32ff478 commit d03024e

File tree

5 files changed

+183
-210
lines changed

5 files changed

+183
-210
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/gl-plugin/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use std::future::Future;
66
use std::sync::Arc;
77
use tokio::sync::broadcast;
88

9+
#[macro_use(error)]
10+
extern crate gl_util;
11+
912
mod awaitables;
1013
pub mod config;
1114
pub mod hsm;

0 commit comments

Comments
 (0)