Skip to content

Commit

Permalink
added additional hardware pull to refresh metrics and added latest ta…
Browse files Browse the repository at this point in the history
…g to workflow (#888)
  • Loading branch information
kmaus-near authored Oct 11, 2024
1 parent 9b495c5 commit 534a598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/multichain-deploy-dev-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
push: true
file: ./Dockerfile.multichain
tags: "${{ env.IMAGE }}:${{ env.TAG }}"
tags: "${{ env.IMAGE }}:${{ env.TAG }},${{ env.IMAGE }}:latest"

deploy:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
Expand Down
3 changes: 2 additions & 1 deletion chain-signatures/node/src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl MpcSignProtocol {
let mut queue = MpcMessageQueue::default();
let mut last_state_update = Instant::now();
let mut last_config_update = Instant::now();
let last_hardware_pull = Instant::now();
let mut last_hardware_pull = Instant::now();
let mut last_pinged = Instant::now();

// Sets the latest configurations from the contract:
Expand All @@ -233,6 +233,7 @@ impl MpcSignProtocol {
// Hardware metric refresh
if last_hardware_pull.elapsed() > Duration::from_secs(5) {
update_system_metrics(&my_account_id);
last_hardware_pull = Instant::now();
}

crate::metrics::PROTOCOL_ITER_CNT
Expand Down

0 comments on commit 534a598

Please sign in to comment.