Skip to content

Commit

Permalink
Merge pull request #605 from loco-rs/fix-task-generator-in-lightweigh…
Browse files Browse the repository at this point in the history
…t-service

fix task generator in lightweight service
  • Loading branch information
kaplanelad authored Jun 10, 2024
2 parents 095637d + a794ace commit 75d5af9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion starters/lightweight-service/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use loco_rs::{
};

use crate::controllers;
#[allow(unused_imports)]
use crate::tasks;

pub struct App;
#[async_trait]
Expand Down Expand Up @@ -40,5 +42,8 @@ impl Hooks for App {

fn connect_workers<'a>(_p: &'a mut Processor, _ctx: &'a AppContext) {}

fn register_tasks(_tasks: &mut Tasks) {}
#[allow(unused_variables)]
fn register_tasks(tasks: &mut Tasks) {
// tasks.register(TASK);
}
}
1 change: 1 addition & 0 deletions starters/lightweight-service/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod app;
pub mod controllers;
pub mod tasks;
pub mod views;
1 change: 1 addition & 0 deletions starters/lightweight-service/src/tasks/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions starters/lightweight-service/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
mod requests;
mod tasks;
1 change: 1 addition & 0 deletions starters/lightweight-service/tests/tasks/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 75d5af9

Please sign in to comment.