Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Oct 26, 2021
1 parent 280ca5e commit 55031ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions server/src/comms/tcp_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ impl MessageSender {
struct ReadState {
/// The associated connection
pub transport: Arc<RwLock<TcpTransport>>,
/// Raw bytes in buffer
pub in_buf: Vec<u8>,
/// Bytes read in buffer
pub bytes_read: usize,
/// Sender of responses
Expand Down Expand Up @@ -538,7 +536,6 @@ impl TcpTransport {
let read_state = ReadState {
transport: transport.clone(),
bytes_read: 0,
in_buf: vec![0u8; receive_buffer_size],
sender: sender.clone(),
};

Expand Down
6 changes: 0 additions & 6 deletions server/src/services/message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,6 @@ impl MessageHandler {
}
}

/// Updates the last service request timestamp after handling the request
fn update_last_service_request_timestamp(session: Arc<RwLock<Session>>, now: DateTimeUtc) {
let mut session = trace_write_lock_unwrap!(session);
session.set_last_service_request_timestamp(now);
}

/// Test if the session is activated
fn is_session_activated(
session: Arc<RwLock<Session>>,
Expand Down

0 comments on commit 55031ed

Please sign in to comment.