mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
cln-grpc: Do not log an error when called with --help
Changelog-None
This commit is contained in:
parent
fbcdbe8842
commit
767da45037
1 changed files with 8 additions and 2 deletions
|
@ -176,7 +176,8 @@ where
|
|||
}))
|
||||
.await?
|
||||
}
|
||||
o => return Err(anyhow!("Got unexpected message {:?} from lightningd", o)),
|
||||
Some(o) => return Err(anyhow!("Got unexpected message {:?} from lightningd", o)),
|
||||
None => return Err(anyhow!("Lost connection to lightning expecting getmanifest")),
|
||||
};
|
||||
|
||||
match input.next().await {
|
||||
|
@ -192,7 +193,12 @@ where
|
|||
.await?
|
||||
}
|
||||
|
||||
o => return Err(anyhow!("Got unexpected message {:?} from lightningd", o)),
|
||||
Some(o) => return Err(anyhow!("Got unexpected message {:?} from lightningd", o)),
|
||||
None => {
|
||||
// If we are being called with --help we will get
|
||||
// disconnected here. That's expected, so don't
|
||||
// complain about it.
|
||||
}
|
||||
};
|
||||
|
||||
let (wait_handle, _) = tokio::sync::broadcast::channel(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue