Skip to content

Commit 2862c77

Browse files
committed
refactor: [#1235] remove another pub methog only used for testing
1 parent f32f0bf commit 2862c77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/tracker-core/src/whitelist/manager.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ impl WhitelistManager {
4848
Ok(())
4949
}
5050

51-
/// It removes a torrent from the whitelist in memory.
52-
pub async fn remove_torrent_from_memory_whitelist(&self, info_hash: &InfoHash) -> bool {
53-
self.in_memory_whitelist.remove(info_hash).await
54-
}
55-
5651
/// It loads the whitelist from the database.
5752
///
5853
/// # Errors
@@ -155,7 +150,7 @@ mod tests {
155150

156151
whitelist_manager.add_torrent_to_whitelist(&info_hash).await.unwrap();
157152

158-
whitelist_manager.remove_torrent_from_memory_whitelist(&info_hash).await;
153+
services.in_memory_whitelist.remove(&info_hash).await;
159154

160155
assert!(!services.in_memory_whitelist.contains(&info_hash).await);
161156

0 commit comments

Comments
 (0)