Skip to content

Commit 158a192

Browse files
authored
chore(common): clean RuntimeTransport derive and remove dead LockError (#11669)
1 parent 165c0aa commit 158a192

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/common/src/provider/runtime_transport.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ pub enum RuntimeTransportError {
3838
#[error("Internal transport error: {0} with {1}")]
3939
TransportError(TransportError, String),
4040

41-
/// Failed to lock the transport
42-
#[error("Failed to lock the transport")]
43-
LockError,
44-
4541
/// Invalid URL scheme
4642
#[error("URL scheme is not supported: {0}")]
4743
BadScheme(String),
@@ -70,7 +66,7 @@ pub enum RuntimeTransportError {
7066
/// either an HTTP WebSocket, or IPC transport depending on the URL used.
7167
/// Retries for rate-limiting and timeout-related errors are handled by an external
7268
/// client layer (e.g., `RetryBackoffLayer`) when configured.
73-
#[derive(Clone, Debug, Error)]
69+
#[derive(Clone, Debug)]
7470
pub struct RuntimeTransport {
7571
/// The inner actual transport used.
7672
inner: Arc<RwLock<Option<InnerTransport>>>,

0 commit comments

Comments
 (0)