Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-23 05:20:28 +01:00
Fix clippy lint and remove unused log
Dieser Commit ist enthalten in:
Ursprung
0de5919a16
Commit
b00fbf153e
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
|
@ -258,7 +258,7 @@ fn create_ping() -> Vec<u8> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(PartialEq)]
|
#[derive(Eq, PartialEq)]
|
||||||
pub enum UpdateType {
|
pub enum UpdateType {
|
||||||
CipherUpdate = 0,
|
CipherUpdate = 0,
|
||||||
CipherCreate = 1,
|
CipherCreate = 1,
|
||||||
|
@ -349,8 +349,6 @@ async fn handle_connection(stream: TcpStream, users: WebSocketUsers, addr: Socke
|
||||||
res = stream.next() => {
|
res = stream.next() => {
|
||||||
match res {
|
match res {
|
||||||
Some(Ok(message)) => {
|
Some(Ok(message)) => {
|
||||||
//info!("RECEIVED {message:?}");
|
|
||||||
|
|
||||||
// Respond to any pings
|
// Respond to any pings
|
||||||
if let Message::Ping(ping) = message {
|
if let Message::Ping(ping) = message {
|
||||||
if stream.send(Message::Pong(ping)).await.is_err() {
|
if stream.send(Message::Pong(ping)).await.is_err() {
|
||||||
|
|
Laden …
In neuem Issue referenzieren