Skip to content

Commit

Permalink
Revert "Trying to speed up things by using a pure threading model"
Browse files Browse the repository at this point in the history
This reverts commit 0cfe8aa.
  • Loading branch information
Power2All committed Jan 8, 2025
1 parent a0a3036 commit 52677cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tracker/impls/torrent_tracker_peers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::btree_map::Entry;
use std::net::{IpAddr, SocketAddr};
use std::sync::Arc;
use std::sync::atomic::{AtomicU64, Ordering};
use std::thread;
use std::time::Duration;
use futures_util::future::join_all;
use log::info;
Expand Down Expand Up @@ -275,7 +274,7 @@ impl TorrentTracker {
let torrents_removed_clone = torrents_removed.clone();
let seeds_found_clone = seeds_found.clone();
let peers_found_clone = peers_found.clone();
threads.push(thread::spawn(async move {
threads.push(tokio::spawn(async move {
let mut seeds = 0u64;
let mut peers = 0u64;
let mut remove_list = vec![];
Expand Down

0 comments on commit 52677cb

Please sign in to comment.