parser: fix binance time

This commit is contained in:
k
2024-08-05 11:23:41 +02:00
parent 992d45c8af
commit 9a8f5edd58
2 changed files with 5 additions and 5 deletions

View File

@@ -530,7 +530,8 @@ How to fix this:
previous_timestamp: Option<u32>,
) -> color_eyre::Result<OHLC> {
if self.binance_har.is_none() {
self.binance_har.replace(Binance::read_har_file()?);
self.binance_har
.replace(Binance::read_har_file().unwrap_or_default());
}
Self::find_height_ohlc(