File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/tracker-core/src/whitelist Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments