aquatic_http: clean up clode

This commit is contained in:
Joakim Frostegård 2020-07-04 13:51:43 +02:00
parent d48573a28e
commit ccafdc5cd3
5 changed files with 0 additions and 6 deletions

View file

@ -108,7 +108,6 @@ pub struct State {
} }
// identical to ws version
impl Default for State { impl Default for State {
fn default() -> Self { fn default() -> Self {
Self { Self {

View file

@ -46,7 +46,6 @@ pub struct ProtocolConfig {
} }
impl Default for Config { impl Default for Config {
fn default() -> Self { fn default() -> Self {
Self { Self {

View file

@ -15,7 +15,6 @@ use crate::protocol::request::*;
use crate::protocol::response::*; use crate::protocol::response::*;
// almost identical to ws version
pub fn run_request_worker( pub fn run_request_worker(
config: Config, config: Config,
state: State, state: State,
@ -179,7 +178,6 @@ pub fn handle_announce_requests(
} }
// almost identical to ws version
pub fn handle_scrape_requests( pub fn handle_scrape_requests(
config: &Config, config: &Config,
torrent_maps: &mut TorrentMaps, torrent_maps: &mut TorrentMaps,

View file

@ -19,7 +19,6 @@ use common::*;
use config::Config; use config::Config;
// almost identical to ws version
pub fn run(config: Config) -> anyhow::Result<()> { pub fn run(config: Config) -> anyhow::Result<()> {
let opt_tls_acceptor = create_tls_acceptor(&config.network.tls)?; let opt_tls_acceptor = create_tls_acceptor(&config.network.tls)?;

View file

@ -3,7 +3,6 @@ use std::time::Instant;
use crate::common::*; use crate::common::*;
// identical to ws version
pub fn clean_torrents(state: &State){ pub fn clean_torrents(state: &State){
fn clean_torrent_map( fn clean_torrent_map(
torrent_map: &mut TorrentMap, torrent_map: &mut TorrentMap,