mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
Add .idea to .gitignore to ignore IDE-specific files
This commit is contained in:
parent
0b97f70bde
commit
33c819bd3a
2 changed files with 2 additions and 11 deletions
|
|
@ -156,6 +156,7 @@ impl Default for PerformanceConfig {
|
|||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[serde(default)]
|
||||
#[derive(Default)]
|
||||
pub struct Config {
|
||||
pub scanner: ScannerConfig,
|
||||
pub database: DatabaseConfig,
|
||||
|
|
@ -163,16 +164,6 @@ pub struct Config {
|
|||
pub performance: PerformanceConfig,
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
scanner: ScannerConfig::default(),
|
||||
database: DatabaseConfig::default(),
|
||||
output: OutputConfig::default(),
|
||||
performance: PerformanceConfig::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Config {
|
||||
pub fn load(
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ pub fn spawn_senders(
|
|||
|
||||
let mut b = Batcher { tx: tx.clone(), batch: Vec::with_capacity(BATCH_SIZE) };
|
||||
match entry {
|
||||
Ok(e) if e.file_type().map_or(false, |ft| ft.is_file()) => {
|
||||
Ok(e) if e.file_type().is_some_and(|ft| ft.is_file()) => {
|
||||
b.push(e.into_path());
|
||||
if batch.len() == BATCH_SIZE {
|
||||
let _ = tx.send(std::mem::take(&mut batch));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue