Skip to content

Commit

Permalink
Update core/bin/zksync_api/src/api_server/rest/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Aleksanov <[email protected]>
  • Loading branch information
Deniallugo and popzxc committed Sep 2, 2022
1 parent ad4b92e commit 5d4c3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/bin/zksync_api/src/api_server/rest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ pub fn start_server_thread_detached(

let mut network_status = SharedNetworkStatus::new(core_address);
// We want to update the network status, as soon as possible, otherwise we can catch the situation,
// when the node is start and receiving the request but the status is null and
// we receive the notification that our node is down, but it's just a default status
// when the node is started and receiving the request, but the status is still `null` and
// monitoring tools spawn the notification that our node is down, though it's just a default status
let last_tx_id = network_status
.update(&read_only_connection_pool, SequentialTxId(0))
.await
Expand Down

0 comments on commit 5d4c3c0

Please sign in to comment.