Update busd git dep to include control over whether channel conns skip hello
This commit is contained in:
parent
6428695a6b
commit
e32d6746df
4 changed files with 16 additions and 13 deletions
|
|
@ -48,10 +48,10 @@ impl HostedBus {
|
|||
self.guid.inner()
|
||||
}
|
||||
|
||||
pub async fn connect_channel(&mut self) -> eyre::Result<zbus::Connection> {
|
||||
pub async fn connect_channel(&mut self, skip_hello: bool) -> eyre::Result<zbus::Connection> {
|
||||
let id = self.next_id();
|
||||
self.peers
|
||||
.add_channel(&self.guid, id)
|
||||
.add_channel(&self.guid, id, skip_hello)
|
||||
.await
|
||||
.map_err(|err| eyre::eyre!(Box::new(err))) // https://github.com/eyre-rs/eyre/issues/31 XXX: busd should not use anyhow!
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ async fn main() -> eyre::Result<()> {
|
|||
enclose! { (vm_bus, vm_bus_guid) async move {
|
||||
// TODO: Not necessary to go through the channel, add vsock support to the Peer too
|
||||
let client_conn = client.build((&vm_bus_guid).into()).await?;
|
||||
let vmbus_conn = vm_bus.lock().await.connect_channel().await?;
|
||||
let vmbus_conn = vm_bus.lock().await.connect_channel(true).await?;
|
||||
sidebus_common::raw::splice_conns(client_conn, vmbus_conn).await;
|
||||
Ok(())
|
||||
} }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue