forked from alemi/upub
chore: cleanup
This commit is contained in:
parent
a0df9f8cc4
commit
7454da6525
2 changed files with 5 additions and 9 deletions
12
src/main.rs
12
src/main.rs
|
@ -1,9 +1,9 @@
|
|||
pub mod server;
|
||||
pub mod model;
|
||||
pub mod routes;
|
||||
pub mod cli;
|
||||
mod server;
|
||||
mod model;
|
||||
mod routes;
|
||||
mod cli;
|
||||
|
||||
pub mod errors;
|
||||
mod errors;
|
||||
|
||||
#[cfg(feature = "migrations")]
|
||||
mod migrations;
|
||||
|
@ -48,7 +48,6 @@ enum CliCommand {
|
|||
/// apply database migrations
|
||||
Migrate,
|
||||
|
||||
#[cfg(feature = "faker")]
|
||||
/// generate fake user, note and activity
|
||||
Faker{
|
||||
/// how many fake statuses to insert for root user
|
||||
|
@ -123,7 +122,6 @@ async fn main() {
|
|||
migrations::Migrator::up(&db, None)
|
||||
.await.expect("error applying migrations"),
|
||||
|
||||
#[cfg(feature = "faker")]
|
||||
CliCommand::Faker { count } =>
|
||||
cli::faker(&db, args.domain, count)
|
||||
.await.expect("error creating fake entities"),
|
||||
|
|
|
@ -17,8 +17,6 @@ impl Default for Dispatcher {
|
|||
}
|
||||
|
||||
impl Dispatcher {
|
||||
pub fn new() -> Self { Dispatcher::default() }
|
||||
|
||||
pub fn spawn(&self, db: DatabaseConnection, domain: String, poll_interval: u64) -> JoinHandle<()> {
|
||||
let waker = self.waker.subscribe();
|
||||
tokio::spawn(async move {
|
||||
|
|
Loading…
Reference in a new issue