Skip to content

Commit

Permalink
Merge pull request #75 from kedars/bugfix/osx_support
Browse files Browse the repository at this point in the history
Fix broken build on OS-X
  • Loading branch information
kedars authored Jul 25, 2023
2 parents 2b00a88 + ded50dd commit 1fccb18
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions rs-matter/src/mdns/astro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
use astro_dnssd::{DNSServiceBuilder, RegisteredDnsService};
use log::info;

use super::ServiceMode;
use super::{MdnsRunBuffers, ServiceMode};

/// Only for API-compatibility with builtin::MdnsRunner
pub struct MdnsUdpBuffers(());
Expand Down Expand Up @@ -91,12 +91,23 @@ impl<'a> MdnsService<'a> {
}

/// Only for API-compatibility with builtin::MdnsRunner
pub async fn run_udp(&mut self, buffers: &mut MdnsUdpBuffers) -> Result<(), Error> {
pub async fn run_piped(
&mut self,
_tx_pipe: &Pipe<'_>,
_rx_pipe: &Pipe<'_>,
) -> Result<(), Error> {
core::future::pending::<Result<(), Error>>().await
}

/// Only for API-compatibility with builtin::MdnsRunner
pub async fn run(&self, _tx_pipe: &Pipe<'_>, _rx_pipe: &Pipe<'_>) -> Result<(), Error> {
pub async fn run<D>(
&self,
_stack: &crate::transport::network::NetworkStack<D>,
_buffers: &mut MdnsRunBuffers,
) -> Result<(), Error>
where
D: crate::transport::network::NetworkStackDriver,
{
core::future::pending::<Result<(), Error>>().await
}
}
Expand Down

0 comments on commit 1fccb18

Please sign in to comment.