Skip to content

Commit

Permalink
fix(rpc): allow default deserialization value for subscription data t…
Browse files Browse the repository at this point in the history
…ag (#7)
  • Loading branch information
farazdagi authored Mar 2, 2023
1 parent 918b8c5 commit 7dcd84a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion relay_client/src/client/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use {

pub type SocketStream = WebSocketStream<MaybeTlsStream<TcpStream>>;

/// Opens a cnnection to the Relay and returns [`ClientStream`] for the
/// Opens a connection to the Relay and returns [`ClientStream`] for the
/// connection.
pub async fn create_stream(opts: ConnectionOptions) -> Result<ClientStream, Error> {
let (socket, _) = connect_async(opts.into_request()?)
Expand Down
1 change: 1 addition & 0 deletions relay_rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ pub struct SubscriptionData {

/// A label that identifies what type of message is sent based on the RPC
/// method used.
#[serde(default, skip_serializing_if = "is_default")]
pub tag: u32,
}

Expand Down

0 comments on commit 7dcd84a

Please sign in to comment.