Skip to content

Commit

Permalink
add forgotten awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
Univa committed Apr 3, 2024
1 parent f6566f2 commit d3d822c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rumcake-macros/src/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ pub(crate) fn keyboard_main(
let underglow_animator_storage = underglow_animator.create_storage_instance();
});
spawning.extend(quote! {
::rumcake::lighting::initialize_lighting_data(&underglow_animator_storage, &DATABASE);
::rumcake::lighting::initialize_lighting_data(&underglow_animator_storage, &DATABASE).await;
spawner.spawn(::rumcake::lighting_storage_task!(underglow_animator_storage, &DATABASE)).unwrap();
});
}
Expand Down Expand Up @@ -534,7 +534,7 @@ pub(crate) fn keyboard_main(
let simple_backlight_animator_storage = simple_backlight_animator.create_storage_instance();
});
spawning.extend(quote! {
::rumcake::lighting::initialize_lighting_data(&simple_backlight_animator_storage, &DATABASE);
::rumcake::lighting::initialize_lighting_data(&simple_backlight_animator_storage, &DATABASE).await;
spawner.spawn(::rumcake::lighting_storage_task!(simple_backlight_animator_storage, &DATABASE)).unwrap();
});
}
Expand Down Expand Up @@ -562,7 +562,7 @@ pub(crate) fn keyboard_main(
let simple_backlight_matrix_animator_storage = simple_backlight_matrix_animator.create_storage_instance();
});
spawning.extend(quote! {
::rumcake::lighting::initialize_lighting_data(&simple_backlight_matrix_animator_storage, &DATABASE);
::rumcake::lighting::initialize_lighting_data(&simple_backlight_matrix_animator_storage, &DATABASE).await;
spawner.spawn(::rumcake::lighting_storage_task!(simple_backlight_matrix_animator_storage, &DATABASE)).unwrap();
});
}
Expand Down Expand Up @@ -590,7 +590,7 @@ pub(crate) fn keyboard_main(
let rgb_backlight_matrix_animator_storage = rgb_backlight_matrix_animator.create_storage_instance();
});
spawning.extend(quote! {
::rumcake::lighting::initialize_lighting_data(&rgb_backlight_matrix_animator_storage, &DATABASE);
::rumcake::lighting::initialize_lighting_data(&rgb_backlight_matrix_animator_storage, &DATABASE).await;
spawner.spawn(::rumcake::lighting_storage_task!(rgb_backlight_matrix_animator_storage, &DATABASE)).unwrap();
});
}
Expand Down

0 comments on commit d3d822c

Please sign in to comment.