Skip to content

Commit

Permalink
Removed unused init
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox committed Nov 11, 2023
1 parent f6e554b commit 88e82da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/input.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::{MidiMessage, KEY_RANGE};
use bevy::prelude::Plugin;
use bevy::tasks::TaskPool;
use bevy::{prelude::*, tasks::IoTaskPool};
use crossbeam_channel::{Receiver, Sender};
use midir::ConnectErrorKind; // XXX: do we expose this?
Expand Down Expand Up @@ -175,7 +174,7 @@ fn setup(mut commands: Commands, settings: Res<MidiInputSettings>) {
let (r_sender, r_receiver) = crossbeam_channel::unbounded::<Reply>();

//Got issues with the taskpool rewrite : https://github.com/bevyengine/bevy/pull/10008
let thread_pool = IoTaskPool::get_or_init(TaskPool::new);
let thread_pool = IoTaskPool::get();
thread_pool.spawn({
MidiInputTask {
receiver: m_receiver,
Expand Down
6 changes: 3 additions & 3 deletions src/output.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::MidiMessage;
use bevy::tasks::TaskPool;
use bevy::{prelude::*, tasks::IoTaskPool};
use bevy::prelude::*;
use bevy::tasks::IoTaskPool;
use crossbeam_channel::{Receiver, Sender};
use midir::ConnectErrorKind;
pub use midir::MidiOutputPort;
Expand Down Expand Up @@ -137,7 +137,7 @@ fn setup(mut commands: Commands, settings: Res<MidiOutputSettings>) {
let (r_sender, r_receiver) = crossbeam_channel::unbounded();

//Got issues with the taskpool rewrite : https://github.com/bevyengine/bevy/pull/10008
let thread_pool = IoTaskPool::get_or_init(TaskPool::new);
let thread_pool = IoTaskPool::get();
thread_pool
.spawn(MidiOutputTask {
receiver: m_receiver,
Expand Down

0 comments on commit 88e82da

Please sign in to comment.