Skip to content

Commit

Permalink
General cleanup (#1)
Browse files Browse the repository at this point in the history
* general cleanup

Signed-off-by: Walker Crouse <[email protected]>

* add workflow

Signed-off-by: Walker Crouse <[email protected]>

* remove workflow

Signed-off-by: Walker Crouse <[email protected]>

---------

Signed-off-by: Walker Crouse <[email protected]>
  • Loading branch information
windy1 authored Aug 11, 2024
1 parent 1e3259d commit 6c64e6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions zeroconf-tokio/src/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ mod tests {
let service_type = ServiceType::new("http", "tcp").unwrap();
let mut service = MdnsService::new(service_type.clone(), 8080);

service.set_name("test_service".into());
service.set_name("test_service");

Self::new(
vec![MdnsServiceAsync::new(service).unwrap()],
Expand Down Expand Up @@ -187,8 +187,8 @@ mod tests {
let mut service1 = MdnsService::new(service_type.clone(), 8080);
let mut service2 = MdnsService::new(service_type.clone(), 8081);

service1.set_name("test_service_1".into());
service2.set_name("test_service_2".into());
service1.set_name("test_service_1");
service2.set_name("test_service_2");

let services = vec![
MdnsServiceAsync::new(service1).unwrap(),
Expand Down
1 change: 1 addition & 0 deletions zeroconf-tokio/src/event_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use tokio::task::JoinHandle;
use zeroconf::{prelude::*, EventLoop};

/// Event processor for mDNS event loop.
#[derive(Default)]
pub struct EventProcessor {
running: Arc<AtomicBool>,
join_handle: Option<JoinHandle<()>>,
Expand Down
2 changes: 1 addition & 1 deletion zeroconf-tokio/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ mod tests {
let service_type = ServiceType::new("http", "tcp").unwrap();
let mut service = MdnsService::new(service_type, 8080);

service.set_name("test_service".into());
service.set_name("test_service");

Self {
service: MdnsServiceAsync::new(service).unwrap(),
Expand Down

0 comments on commit 6c64e6c

Please sign in to comment.