From 023d8aebd39ac09c8b4f03d8bfb38b311ccab062 Mon Sep 17 00:00:00 2001 From: gadcl Date: Mon, 16 Nov 2020 16:32:47 +0200 Subject: [PATCH] fix to LastCommit.Time metric initial value (now) overridden by 0 updated the go-mod to lean-helix latest tag v0.6.2 --- go.mod | 2 +- services/blockstorage/init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 4768b2146..3fe7c3e07 100644 --- a/go.mod +++ b/go.mod @@ -29,7 +29,7 @@ require ( github.com/orbs-network/go-mock v1.1.0 github.com/orbs-network/govnr v0.2.0 github.com/orbs-network/healthcheck v1.4.0 - github.com/orbs-network/lean-helix-go v0.6.1 + github.com/orbs-network/lean-helix-go v0.6.2 github.com/orbs-network/membuffers v0.4.0 github.com/orbs-network/orbs-client-sdk-go v0.19.0 github.com/orbs-network/orbs-contract-sdk v1.8.0 diff --git a/services/blockstorage/init.go b/services/blockstorage/init.go index 2807a9981..bebede702 100644 --- a/services/blockstorage/init.go +++ b/services/blockstorage/init.go @@ -99,7 +99,7 @@ func NewBlockStorage( } s.Supervise(s.nodeSync) s.Supervise(s.startNotifyNodeSync(ctx)) - s.updateMetrics(0) + s.updateMetrics(time.Now().UnixNano()) return s }