Skip to content

Commit 13ab7b5

Browse files
committed
style: formatting
1 parent 60f5c2b commit 13ab7b5

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

crates/bulk_runner_query/src/dispatch.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ use tokio::sync::mpsc::UnboundedSender;
66
use crate::query_engine::QueryEngine;
77
use crate::{error, info, Result};
88

9-
pub async fn query_database(tx: UnboundedSender<Bot>, parsed_sql_file: impl AsRef<str>, limit_total_runnable: usize) {
9+
pub async fn query_database(
10+
tx: UnboundedSender<Bot>,
11+
parsed_sql_file: impl AsRef<str>,
12+
limit_total_runnable: usize,
13+
) {
1014
let mut base_bots: Vec<BaseBot> = QueryEngine::default()
1115
.get_bots(parsed_sql_file.as_ref(), limit_total_runnable as u8)
1216
.await

crates/bulk_runner_query/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ mod query_engine;
77
use tracing::{error, info};
88

99
pub use crate::command_builder::AutomateBuilderBase;
10+
#[cfg(target_os = "windows")]
11+
#[cfg(not(target_os = "unix"))]
12+
pub use crate::db_info::DbInfo;
13+
#[cfg(not(target_os = "windows"))]
14+
#[cfg(target_os = "linux")]
1015
pub use crate::db_info::{sql_password_from_env, sql_user_from_env, DbInfo};
1116
pub use crate::dispatch::{cli_dispatch, query_database};
1217
// use bulk_runner_bots::{BaseBot, Bot};

crates/bulk_runner_rs/src/runner.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ use crate::prelude::*;
55
use crate::{Dispatchable, Packet};
66

77
pub struct Runner {
8-
process: String,
9-
concurrency_limit: usize,
8+
process: String,
9+
concurrency_limit: usize,
1010
limit_total_runnable: usize,
11-
sql_file_contents: String,
11+
sql_file_contents: String,
1212
}
1313

1414
impl From<Cli> for Runner {
1515
#[inline]
1616
fn from(cli: Cli) -> Self {
1717
Runner {
18-
process: cli.process().to_string(),
19-
concurrency_limit: cli.concurrency_limit(),
18+
process: cli.process().to_string(),
19+
concurrency_limit: cli.concurrency_limit(),
2020
limit_total_runnable: cli.limit_total_runnable(),
21-
sql_file_contents: cli.serialize_sql_file().unwrap_or("bots.sql".to_string()),
21+
sql_file_contents: cli.serialize_sql_file().unwrap_or("bots.sql".to_string()),
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)