Skip to content

Commit

Permalink
Revert "back to nightly?"
Browse files Browse the repository at this point in the history
This reverts commit 2d792a5.
  • Loading branch information
kanekoshoyu committed Feb 13, 2024
1 parent 2d792a5 commit 93ed092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
Expand Down
8 changes: 4 additions & 4 deletions src/broker/orderbook/kucoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ pub async fn task_pub_orderbook_event(
match msg {
KucoinWebsocketMsg::OrderBookMsg(msg) => {
let ts_message = msg.data.time;
tracing::info!("message(raw): {ts_message:?}");
let t_message = Utc.timestamp_millis_opt(ts_message as i64).unwrap();
let t_system = Utc::now();
let latency = t_system - t_message;
// tracing::info!("message(raw): {ts_message:?}");
// tracing::info!("message: {t_message:?}");
// tracing::info!("system: {t_system:?}");
// tracing::info!("latency: {latency:?}");
tracing::info!("message: {t_message:?}");
tracing::info!("system: {t_system:?}");
tracing::info!("latency: {latency:?}");

let (str, data) = msg.data.to_internal(serial);
let event = OrderbookEvent::OrderbookChangeReceived((str, data));
Expand Down

0 comments on commit 93ed092

Please sign in to comment.