Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
heilhead committed Jan 20, 2025
1 parent 40d5c39 commit 6208069
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
3 changes: 2 additions & 1 deletion relay_client/src/http.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use {
crate::{
error::{BoxError, ClientError, Error},
ConnectionOptions, MessageIdGenerator,
ConnectionOptions,
MessageIdGenerator,
},
http::{HeaderMap, StatusCode},
relay_rpc::{
Expand Down
21 changes: 17 additions & 4 deletions relay_client/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ use {
relay_rpc::{
domain::{MessageId, SubscriptionId, Topic},
rpc::{
BatchFetchMessages, BatchReceiveMessages, BatchSubscribe, BatchSubscribeBlocking,
BatchUnsubscribe, FetchMessages, Publish, Receipt, Subscribe, SubscribeBlocking,
Subscription, SubscriptionError, Unsubscribe,
BatchFetchMessages,
BatchReceiveMessages,
BatchSubscribe,
BatchSubscribeBlocking,
BatchUnsubscribe,
FetchMessages,
Publish,
Receipt,
Subscribe,
SubscribeBlocking,
Subscription,
SubscriptionError,
Unsubscribe,
},
},
std::{future::Future, sync::Arc, time::Duration},
Expand All @@ -19,7 +29,10 @@ use {
},
};
pub use {
fetch::*, inbound::*, outbound::*, stream::*,
fetch::*,
inbound::*,
outbound::*,
stream::*,
tokio_tungstenite::tungstenite::protocol::CloseFrame,
};

Expand Down
8 changes: 3 additions & 5 deletions relay_rpc/src/rpc/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,12 @@ fn response_result() {

#[test]
fn response_error() {
let payload: Payload = Payload::Response(Response::Error(ErrorResponse::new(
1.into(),
ErrorData {
let payload: Payload =
Payload::Response(Response::Error(ErrorResponse::new(1.into(), ErrorData {
code: 32,
data: None,
message: "some message".into(),
},
)));
})));

let serialized = serde_json::to_string(&payload).unwrap();

Expand Down

0 comments on commit 6208069

Please sign in to comment.