mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-18 23:18:08 +00:00
docs/chores/refactor
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user