mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
Run cargo fmt
This commit is contained in:
parent
130377b8f4
commit
f60631b29e
3 changed files with 4 additions and 5 deletions
|
|
@ -27,7 +27,6 @@ use aquatic_http_protocol::{
|
||||||
response::{AnnounceResponse, ScrapeResponse},
|
response::{AnnounceResponse, ScrapeResponse},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
pub struct ConsumerId(pub usize);
|
pub struct ConsumerId(pub usize);
|
||||||
|
|
||||||
|
|
@ -291,4 +290,4 @@ mod tests {
|
||||||
assert_eq!(f(101), 3);
|
assert_eq!(f(101), 3);
|
||||||
assert_eq!(f(1000), 4);
|
assert_eq!(f(1000), 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -357,4 +357,4 @@ pub fn handle_scrape_request(
|
||||||
};
|
};
|
||||||
|
|
||||||
response
|
response
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ use glommio::{channels::channel_mesh::MeshBuilder, prelude::*};
|
||||||
|
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
|
|
||||||
pub mod config;
|
|
||||||
mod common;
|
mod common;
|
||||||
|
pub mod config;
|
||||||
mod handlers;
|
mod handlers;
|
||||||
mod network;
|
mod network;
|
||||||
|
|
||||||
|
|
@ -140,4 +140,4 @@ fn create_tls_config(config: &Config) -> anyhow::Result<rustls::ServerConfig> {
|
||||||
.with_single_cert(certs, private_key)?;
|
.with_single_cert(certs, private_key)?;
|
||||||
|
|
||||||
Ok(tls_config)
|
Ok(tls_config)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue