@@ -10,7 +10,7 @@ use bittorrent_primitives::info_hash::InfoHash;
10
10
use super :: responses:: {
11
11
failed_to_reload_whitelist_response, failed_to_remove_torrent_from_whitelist_response, failed_to_whitelist_torrent_response,
12
12
} ;
13
- use crate :: core:: whitelist:: manager:: WhiteListManager ;
13
+ use crate :: core:: whitelist:: manager:: WhitelistManager ;
14
14
use crate :: servers:: apis:: v1:: responses:: { invalid_info_hash_param_response, ok_response} ;
15
15
use crate :: servers:: apis:: InfoHashParam ;
16
16
@@ -24,7 +24,7 @@ use crate::servers::apis::InfoHashParam;
24
24
/// Refer to the [API endpoint documentation](crate::servers::apis::v1::context::whitelist#add-a-torrent-to-the-whitelist)
25
25
/// for more information about this endpoint.
26
26
pub async fn add_torrent_to_whitelist_handler (
27
- State ( whitelist_manager) : State < Arc < WhiteListManager > > ,
27
+ State ( whitelist_manager) : State < Arc < WhitelistManager > > ,
28
28
Path ( info_hash) : Path < InfoHashParam > ,
29
29
) -> Response {
30
30
match InfoHash :: from_str ( & info_hash. 0 ) {
@@ -47,7 +47,7 @@ pub async fn add_torrent_to_whitelist_handler(
47
47
/// Refer to the [API endpoint documentation](crate::servers::apis::v1::context::whitelist#remove-a-torrent-from-the-whitelist)
48
48
/// for more information about this endpoint.
49
49
pub async fn remove_torrent_from_whitelist_handler (
50
- State ( whitelist_manager) : State < Arc < WhiteListManager > > ,
50
+ State ( whitelist_manager) : State < Arc < WhitelistManager > > ,
51
51
Path ( info_hash) : Path < InfoHashParam > ,
52
52
) -> Response {
53
53
match InfoHash :: from_str ( & info_hash. 0 ) {
@@ -69,7 +69,7 @@ pub async fn remove_torrent_from_whitelist_handler(
69
69
///
70
70
/// Refer to the [API endpoint documentation](crate::servers::apis::v1::context::whitelist#reload-the-whitelist)
71
71
/// for more information about this endpoint.
72
- pub async fn reload_whitelist_handler ( State ( whitelist_manager) : State < Arc < WhiteListManager > > ) -> Response {
72
+ pub async fn reload_whitelist_handler ( State ( whitelist_manager) : State < Arc < WhitelistManager > > ) -> Response {
73
73
match whitelist_manager. load_whitelist_from_database ( ) . await {
74
74
Ok ( ( ) ) => ok_response ( ) ,
75
75
Err ( e) => failed_to_reload_whitelist_response ( e) ,
0 commit comments