Skip to content

Commit

Permalink
fix valid name error
Browse files Browse the repository at this point in the history
  • Loading branch information
linfeng.yuan committed Sep 6, 2024
1 parent 062528d commit 9324eac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/okx/datastore/ord/btc_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ impl BtcDomain {
return false
}
// check if it's json format
let value: Result<serde_json::Value,_> = serde_json::from_str(name);
return value.is_err()
if name.contains("{") {
let value: Result<serde_json::Value,_> = serde_json::from_str(name);
return value.is_err()
}
true
}

pub fn to_collection_key(&self) -> String {
Expand Down

0 comments on commit 9324eac

Please sign in to comment.