docs/chores/refactor

This commit is contained in:
floor-licker
2026-01-04 11:24:35 -05:00
parent c8c2048f33
commit 553698dda2
10 changed files with 312 additions and 295 deletions
+2 -2
View File
@@ -3,13 +3,13 @@
//! This module provides DNS caching functionality to avoid repeated DNS lookups
//! which can add 10-20ms per request.
use hickory_resolver::config::*;
use hickory_resolver::TokioAsyncResolver;
use std::collections::HashMap;
use std::net::IpAddr;
use std::sync::Arc;
use std::time::{Duration, Instant};
use tokio::sync::RwLock;
use hickory_resolver::config::*;
use hickory_resolver::TokioAsyncResolver;
/// DNS cache entry with TTL
#[derive(Clone, Debug)]
+1 -1
View File
@@ -5,7 +5,7 @@
//! - **High-performance order book management** with optimized data structures
//! - **Real-time market data streaming** with WebSocket support
//! - **Trade execution simulation** with slippage protection
//! - **Comprehensive error handling** with specific error types
//! - **Detailed error handling** with specific error types
//! - **Rate limiting and retry logic** for robust API interactions
//! - **Ethereum integration** with EIP-712 signing support
//! - **Benchmarking tools** for performance analysis
+4 -1
View File
@@ -211,7 +211,10 @@ impl WebSocketStream {
/// Subscribe to market channel with custom features enabled
/// Custom features include: best_bid_ask, new_market, market_resolved events
pub async fn subscribe_market_channel_with_features(&mut self, asset_ids: Vec<String>) -> Result<()> {
pub async fn subscribe_market_channel_with_features(
&mut self,
asset_ids: Vec<String>,
) -> Result<()> {
let subscription = WssSubscription {
channel_type: "market".to_string(),
operation: Some("subscribe".to_string()),