Skip to content

Commit 2178c73

Browse files
committed
Standardize OKX HTTP client and adapter guide
1 parent 6abda94 commit 2178c73

File tree

11 files changed

+223
-268
lines changed

11 files changed

+223
-268
lines changed

crates/adapters/bitmex/tests/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl Default for TestServerState {
5252
// Load test data from existing files
5353
fn load_test_data(filename: &str) -> Value {
5454
let path = format!("test_data/{}", filename);
55-
let content = std::fs::read_to_string(path).expect("Failed to read test data");
56-
serde_json::from_str(&content).expect("Failed to parse test data")
55+
let content = std::fs::read_to_string(path).unwrap();
56+
serde_json::from_str(&content).unwrap()
5757
}
5858

5959
// Mock endpoint handlers

crates/adapters/bybit/tests/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ impl Default for TestServerState {
6464
#[allow(dead_code)]
6565
fn load_test_data(filename: &str) -> Value {
6666
let path = format!("test_data/{}", filename);
67-
let content = std::fs::read_to_string(path).expect("Failed to read test data");
68-
serde_json::from_str(&content).expect("Failed to parse test data")
67+
let content = std::fs::read_to_string(path).unwrap();
68+
serde_json::from_str(&content).unwrap()
6969
}
7070

7171
// Mock endpoint handlers

0 commit comments

Comments
 (0)