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,
|
||||
".task": true,
|
||||
".cargo": true,
|
||||
// ".github": true,
|
||||
".github": true,
|
||||
// "rustfmt.toml": true,
|
||||
// "**/**/Cargo.toml": true,
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ pub struct WsEvent {
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ErrorResponse {
|
||||
pub struct WsErrorResponse {
|
||||
#[serde(rename = "errorCode")]
|
||||
pub error_code: u16,
|
||||
pub msg: String,
|
||||
|
||||
@ -16,7 +16,7 @@ pub use {
|
||||
tokio::net::{TcpListener, TcpStream},
|
||||
tokio_tungstenite::{
|
||||
tungstenite::{
|
||||
handshake::server::{Request, Response},
|
||||
handshake::server::{ErrorResponse, Request, Response},
|
||||
Error,
|
||||
},
|
||||
WebSocketStream,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user