fix warnings

This commit is contained in:
William
2025-01-08 16:33:43 +08:00
parent 7882db4b12
commit 7d2365cd84
7 changed files with 174 additions and 444 deletions
+3
View File
@@ -48,6 +48,8 @@ pub enum ClientError {
/// Rate limit exceeded
RateLimitExceeded,
OrderLimitExceeded,
ExternalService(String),
Redis(String, String),
@@ -95,6 +97,7 @@ impl std::fmt::Display for ClientError {
Self::SimulationError(msg) => write!(f, "Transaction simulation failed: {}", msg),
Self::ExternalService(msg) => write!(f, "External service error: {}", msg),
Self::RateLimitExceeded => write!(f, "Rate limit exceeded"),
Self::OrderLimitExceeded => write!(f, "Order limit exceeded"),
Self::Solana(msg, details) => write!(f, "Solana error: {}, details: {}", msg, details),
Self::Parse(msg, details) => write!(f, "Parse error: {}, details: {}", msg, details),
Self::Jito(msg, details) => write!(f, "Jito error: {}, details: {}", msg, details),