Skip to content

Commit

Permalink
Update discro dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Sep 23, 2023
1 parent 528c0c3 commit 44cd892
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[package]
name = "djio"
description = "DJ Hardware Control(ler) Support"
version = "0.0.15"
version = "0.0.16"
license = "MPL-2.0"
readme = "README.md"
repository = "https://github.com/uklotzde/djio"
Expand All @@ -25,7 +25,7 @@ strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.48"

# Optional dependencies
discro = { version = "0.20.0", optional = true }
discro = { version = "0.26.0", optional = true }
midir = { version = "0.9.1", optional = true }
tokio = { version = "1.32.0", default-features = false, optional = true }

Expand Down
6 changes: 3 additions & 3 deletions src/output/blinking_led_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ pub fn blinking_led_task(

#[cfg(feature = "blinking-led-task-tokio-rt")]
#[must_use]
pub fn spawn_blinking_led_task(period: Duration) -> discro::ReadOnlyPublisher<BlinkingLedOutput> {
pub fn spawn_blinking_led_task(period: Duration) -> discro::Subscriber<BlinkingLedOutput> {
let publisher = Publisher::new(BlinkingLedOutput::ON);
let ro_publisher = publisher.clone_read_only();
let subscriber = publisher.subscribe();
let task = blinking_led_task(period, publisher);
tokio::spawn(task);
ro_publisher
subscriber
}

0 comments on commit 44cd892

Please sign in to comment.