We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340a731 commit 7bea339Copy full SHA for 7bea339
plugins/grpc-plugin/src/main.rs
@@ -20,7 +20,6 @@ async fn main() -> Result<()> {
20
let path = Path::new("lightning-rpc");
21
22
let directory = std::env::current_dir()?;
23
- let (identity, ca_cert) = tls::init(&directory)?;
24
25
let plugin = match Builder::new(tokio::io::stdin(), tokio::io::stdout())
26
.option(options::ConfigOption::new(
@@ -48,6 +47,8 @@ async fn main() -> Result<()> {
48
47
Some(o) => return Err(anyhow!("grpc-port is not a valid integer: {:?}", o)),
49
};
50
+ let (identity, ca_cert) = tls::init(&directory)?;
51
+
52
let state = PluginState {
53
rpc_path: path.into(),
54
identity,
0 commit comments