broker reconnect working

This commit is contained in:
Evan Feenstra
2022-06-09 19:23:40 -07:00
parent 937ff0d8de
commit f1e8e13dda
3 changed files with 34 additions and 58 deletions

View File

@@ -17,12 +17,14 @@ pub struct Channel {
}
/// Responses are received on the oneshot sender
#[derive(Debug)]
pub struct ChannelRequest {
pub message: Vec<u8>,
pub reply_tx: oneshot::Sender<ChannelReply>,
}
// mpsc reply
#[derive(Debug)]
pub struct ChannelReply {
pub reply: Vec<u8>,
}
@@ -48,7 +50,7 @@ fn main() -> anyhow::Result<()> {
// Pretend to be the right version, given to us by an env var
let version =
env::var("GREENLIGHT_VERSION").expect("set GREENLIGHT_VERSION to match c-lightning");
println!("{}", version);
log::info!("{}", version);
return Ok(());
}