Skip to content

Commit

Permalink
use embedded-websocket-embedded-io instead of embedded-websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
LimpidCrypto committed Sep 12, 2024
1 parent 3d66ec0 commit d98cf9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ embedded-io-async = { version = "0.6.1", optional = true }
futures = { version = "0.3.30", optional = true }
tokio = { version = "1.0", optional = true, features = ["rt-multi-thread"] }
embassy-time = { version = "0.3.2", optional = true }
embedded-websocket = { git = "https://github.com/LimpidCrypto/embedded-websocket", version = "0.9.3", branch = "embedded-io-async", optional = true, default-features = false, features = [
embedded-websocket-embedded-io = { version = "0.1.0", optional = true, default-features = false, features = [
"embedded-io-async",
] }
reqwless = { version = "0.12.1", optional = true }
Expand Down Expand Up @@ -144,7 +144,7 @@ websocket = [
"result-models",
"futures",
"embedded-io-async",
"embedded-websocket",
"embedded-websocket-embedded-io",
]
core = ["utils"]
utils = []
Expand All @@ -159,7 +159,7 @@ std = [
"serde/std",
"indexmap/std",
"secp256k1/std",
"embedded-websocket/std",
"embedded-websocket-embedded-io/std",
"reqwest",
"tokio",
"tokio-tungstenite",
Expand Down
4 changes: 2 additions & 2 deletions src/asynch/clients/websocket/_no_std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use anyhow::Result;
use embassy_sync::blocking_mutex::raw::RawMutex;
use embassy_sync::mutex::Mutex;
use embedded_io_async::{ErrorType, Read, Write};
use embedded_websocket::{
use embedded_websocket_embedded_io::{
framer_async::{Framer, ReadResult},
Client, WebSocketClient, WebSocketOptions, WebSocketSendMessageType,
};
Expand Down Expand Up @@ -103,7 +103,7 @@ where
.await
{
match error {
// FramerError::WebSocket(embedded_websocket::Error::HttpResponseCodeInvalid(
// FramerError::WebSocket(embedded_websocket_embedded_io::Error::HttpResponseCodeInvalid(
// Some(308),
// )) => (),
error => return Err!(XRPLWebsocketException::from(error)),
Expand Down
4 changes: 2 additions & 2 deletions src/asynch/clients/websocket/exceptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use core::str::Utf8Error;
#[cfg(all(feature = "websocket", not(feature = "std")))]
use embedded_io_async::{Error as EmbeddedIoError, ErrorKind};
#[cfg(all(feature = "websocket", not(feature = "std")))]
use embedded_websocket::framer_async::FramerError;
use embedded_websocket_embedded_io::framer_async::FramerError;
use thiserror_no_std::Error;

#[derive(Debug, Error)]
Expand All @@ -19,7 +19,7 @@ pub enum XRPLWebsocketException<E: Debug> {
HttpHeader,
#[cfg(all(feature = "websocket", not(feature = "std")))]
#[error("Websocket error: {0:?}")]
WebSocket(embedded_websocket::Error),
WebSocket(embedded_websocket_embedded_io::Error),
#[error("Disconnected")]
Disconnected,
#[error("Read buffer is too small (size: {0:?})")]
Expand Down

0 comments on commit d98cf9a

Please sign in to comment.