Skip to content

Commit c07fa11

Browse files
author
Adrian Nagy
committed
chore: fix clippy warnings
1 parent 0eafedc commit c07fa11

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

node/common/src/service/archive.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ mod rpc {
236236
}
237237
}
238238

239-
fn send_heartbeat(connection: &mut TcpStream) -> io::Result<HandleResult> {
239+
fn _send_heartbeat(connection: &mut TcpStream) -> io::Result<HandleResult> {
240240
match connection.write_all(&HEARTBEAT_MSG) {
241241
Ok(_) => {
242242
connection.flush()?;
@@ -302,6 +302,7 @@ mod rpc {
302302
}
303303
}
304304

305+
#[allow(clippy::too_many_arguments)]
305306
fn handle_connection_event(
306307
registry: &Registry,
307308
connection: &mut TcpStream,
@@ -395,9 +396,10 @@ mod rpc {
395396
ParsedMessage::Heartbeat => {
396397
*first_heartbeat_received = true;
397398
}
398-
ParsedMessage::Unknown(_) => {
399+
ParsedMessage::Unknown(msg) => {
399400
registry.deregister(connection)?;
400401
connection.shutdown(std::net::Shutdown::Both)?;
402+
node::core::warn!(node::core::log::system_time(); summary = "Received unknown message", msg = format!("{:?}", msg));
401403
return Ok(HandleResult::ConnectionClosed);
402404
}
403405
}

node/src/transition_frontier/sync/transition_frontier_sync_actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ impl redux::EnablingCondition<crate::State> for TransitionFrontierSyncAction {
365365
}
366366
_ => false,
367367
},
368-
TransitionFrontierSyncAction::BlocksSendToArchive { hash, data } => {
368+
TransitionFrontierSyncAction::BlocksSendToArchive { .. } => {
369369
state.transition_frontier.archive_enabled
370370
}
371371
TransitionFrontierSyncAction::CommitInit => matches!(

p2p/src/service_impl/webrtc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ pub trait P2pServiceWebrtc: redux::Service {
886886
fn auth_send(
887887
&mut self,
888888
peer_id: PeerId,
889-
other_pub_key: &PublicKey,
889+
_other_pub_key: &PublicKey,
890890
auth: Option<ConnectionAuthEncrypted>,
891891
) {
892892
if let Some(peer) = self.peers().get(&peer_id) {

producer-dashboard/src/archive/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ pub mod postgres_types;
66
pub mod raw_types;
77
pub mod watchdog;
88

9-
use raw_types::*;
10-
119
#[derive(Debug, Clone)]
1210
pub struct ArchiveConnector {
1311
pool: PgPool,

0 commit comments

Comments
 (0)