fix(idm): repair idm bugs on the file backend

This commit is contained in:
Alex Zenla
2024-08-13 15:57:45 -07:00
parent 621ae536f6
commit 29ce7ef5e4
6 changed files with 70 additions and 34 deletions

View File

@ -254,9 +254,9 @@ pub struct IdmDaemonBackend {
#[async_trait::async_trait]
impl IdmBackend for IdmDaemonBackend {
async fn recv(&mut self) -> Result<IdmTransportPacket> {
async fn recv(&mut self) -> Result<Vec<IdmTransportPacket>> {
if let Some(packet) = self.rx_receiver.recv().await {
Ok(packet)
Ok(vec![packet])
} else {
Err(anyhow!("idm receive channel closed"))
}