diff --git a/relay_client/src/client/stream.rs b/relay_client/src/client/stream.rs index 70add6d..48d6615 100644 --- a/relay_client/src/client/stream.rs +++ b/relay_client/src/client/stream.rs @@ -32,7 +32,7 @@ use { pub type SocketStream = WebSocketStream>; -/// 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 { let (socket, _) = connect_async(opts.into_request()?) diff --git a/relay_rpc/src/rpc.rs b/relay_rpc/src/rpc.rs index fcc38ba..f242ff0 100644 --- a/relay_rpc/src/rpc.rs +++ b/relay_rpc/src/rpc.rs @@ -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, }