mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
Run rustfmt
This commit is contained in:
parent
523a21dac4
commit
3678e86654
7 changed files with 27 additions and 22 deletions
|
|
@ -122,7 +122,7 @@ pub fn run_poll_loop(
|
|||
&mut poll,
|
||||
local_responses.drain(..),
|
||||
&out_message_receiver,
|
||||
&mut connections
|
||||
&mut connections,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -219,7 +219,11 @@ pub fn run_handshakes_and_read_messages(
|
|||
debug!("read message");
|
||||
|
||||
match InMessage::from_ws_message(ws_message) {
|
||||
Ok(InMessage::AnnounceRequest(ref request)) if !state.access_list.allows(access_list_mode, &request.info_hash.0) => {
|
||||
Ok(InMessage::AnnounceRequest(ref request))
|
||||
if !state
|
||||
.access_list
|
||||
.allows(access_list_mode, &request.info_hash.0) =>
|
||||
{
|
||||
let out_message = OutMessage::ErrorResponse(ErrorResponse {
|
||||
failure_reason: "Info hash not allowed".into(),
|
||||
action: Some(ErrorResponseAction::Announce),
|
||||
|
|
@ -227,7 +231,7 @@ pub fn run_handshakes_and_read_messages(
|
|||
});
|
||||
|
||||
local_responses.push((meta, out_message));
|
||||
},
|
||||
}
|
||||
Ok(in_message) => {
|
||||
if let Err(err) = in_message_sender.send((meta, in_message)) {
|
||||
error!("InMessageSender: couldn't send message: {:?}", err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue