Skip to content

Commit 2bda637

Browse files
committed
remove unused fields
1 parent caa96be commit 2bda637

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/core/torrent/repositories.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ impl RepositoryAsyncSingle {
325325
pub struct RepositoryDashmap {
326326
pub torrents: DashMap<InfoHash, Entry>,
327327
pub shard_priority_list: Vec<Mutex<VecDeque<InfoHash>>>,
328-
pub shard_locks: Vec<Mutex<()>>,
329328
}
330329

331330
impl MemSize for RepositoryDashmap {
@@ -381,12 +380,9 @@ impl Repository for RepositoryDashmap {
381380
.take(torrents._shard_count())
382381
.collect();
383382

384-
let shard_locks = iter::repeat_with(|| Mutex::new(())).take(torrents._shard_count()).collect();
385-
386383
Self {
387384
torrents,
388385
shard_priority_list,
389-
shard_locks,
390386
}
391387
}
392388

0 commit comments

Comments
 (0)