mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: clean up clode
This commit is contained in:
parent
d48573a28e
commit
ccafdc5cd3
5 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue