mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-23 09:42:27 +00:00
aquatic_http: clean up clode
This commit is contained in:
1 parent
d48573a28e
commit
ccafdc5cd3
5 files changed
-6
No files matched your search
@@ -108,7 +108,6 @@ pub struct State {
|
||||
}
|
||||
|
||||
|
||||
// identical to ws version
|
||||
impl Default for State {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
||||
@@ -46,7 +46,6 @@ pub struct ProtocolConfig {
|
||||
}
|
||||
|
||||
|
||||
|
||||
impl Default for Config {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
||||
@@ -15,7 +15,6 @@ use crate::protocol::request::*;
|
||||
use crate::protocol::response::*;
|
||||
|
||||
|
||||
// almost identical to ws version
|
||||
pub fn run_request_worker(
|
||||
config: Config,
|
||||
state: State,
|
||||
@@ -179,7 +178,6 @@ pub fn handle_announce_requests(
|
||||
}
|
||||
|
||||
|
||||
// almost identical to ws version
|
||||
pub fn handle_scrape_requests(
|
||||
config: &Config,
|
||||
torrent_maps: &mut TorrentMaps,
|
||||
|
||||
@@ -19,7 +19,6 @@ use common::*;
|
||||
use config::Config;
|
||||
|
||||
|
||||
// almost identical to ws version
|
||||
pub fn run(config: Config) -> anyhow::Result<()> {
|
||||
let opt_tls_acceptor = create_tls_acceptor(&config.network.tls)?;
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ use std::time::Instant;
|
||||
use crate::common::*;
|
||||
|
||||
|
||||
// identical to ws version
|
||||
pub fn clean_torrents(state: &State){
|
||||
fn clean_torrent_map(
|
||||
torrent_map: &mut TorrentMap,
|
||||
|
||||
Reference in new issue
Block a user