We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34c159a commit 728de22Copy full SHA for 728de22
packages/torrent-repository/src/swarms.rs
@@ -12,6 +12,7 @@ use crate::{LockTrackedTorrent, SwarmHandle};
12
13
#[derive(Default, Debug)]
14
pub struct Swarms {
15
+ // todo: this needs to be public only to insert a peerless torrent (empty swarm).
16
pub swarms: SkipMap<InfoHash, SwarmHandle>,
17
}
18
packages/torrent-repository/tests/repository/mod.rs
@@ -151,6 +151,7 @@ fn persistent_three() -> PersistentTorrents {
151
fn make(repo: &Swarms, entries: &Entries) {
152
for (info_hash, entry) in entries {
153
let new = Arc::new(Mutex::new(entry.clone()));
154
+ // todo: use a public method to insert an empty swarm.
155
repo.swarms.insert(*info_hash, new);
156
157
0 commit comments