fix: 🚑 error response has same name than tungstenite's
This commit is contained in:
parent
32cde9c404
commit
77cd708d1c
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -10,7 +10,7 @@
|
|||||||
".cocorc": true,
|
".cocorc": true,
|
||||||
".task": true,
|
".task": true,
|
||||||
".cargo": true,
|
".cargo": true,
|
||||||
// ".github": true,
|
".github": true,
|
||||||
// "rustfmt.toml": true,
|
// "rustfmt.toml": true,
|
||||||
// "**/**/Cargo.toml": true,
|
// "**/**/Cargo.toml": true,
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ pub struct WsEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct ErrorResponse {
|
pub struct WsErrorResponse {
|
||||||
#[serde(rename = "errorCode")]
|
#[serde(rename = "errorCode")]
|
||||||
pub error_code: u16,
|
pub error_code: u16,
|
||||||
pub msg: String,
|
pub msg: String,
|
||||||
|
|||||||
@ -16,7 +16,7 @@ pub use {
|
|||||||
tokio::net::{TcpListener, TcpStream},
|
tokio::net::{TcpListener, TcpStream},
|
||||||
tokio_tungstenite::{
|
tokio_tungstenite::{
|
||||||
tungstenite::{
|
tungstenite::{
|
||||||
handshake::server::{Request, Response},
|
handshake::server::{ErrorResponse, Request, Response},
|
||||||
Error,
|
Error,
|
||||||
},
|
},
|
||||||
WebSocketStream,
|
WebSocketStream,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user