Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: fixed hardware metrics and added latest tag to workflow #888

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading