Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jun 6, 2024
1 parent 93110fd commit 2ef3b48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zetaclient/metrics/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type TelemetryServer struct {
logger zerolog.Logger
s *http.Server
p2pid string
lastScannedBlockNumber map[int64]uint64 // chainId => block number
lastScannedBlockNumber map[int64]uint64 // chainID => block number
lastCoreBlockNumber int64
mu sync.Mutex
lastStartTimestamp time.Time
Expand Down Expand Up @@ -94,10 +94,10 @@ func (t *TelemetryServer) SetLastScannedBlockNumber(chain chains.Chain, blockNum
}

// GetLastScannedBlockNumber returns last scanned block number for chain
func (t *TelemetryServer) GetLastScannedBlockNumber(chainId int64) uint64 {
func (t *TelemetryServer) GetLastScannedBlockNumber(chainID int64) uint64 {
t.mu.Lock()
defer t.mu.Unlock()
return t.lastScannedBlockNumber[chainId]
return t.lastScannedBlockNumber[chainID]

Check warning on line 100 in zetaclient/metrics/telemetry.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/metrics/telemetry.go#L97-L100

Added lines #L97 - L100 were not covered by tests
}

// SetCoreBlockNumber sets core block number in telemetry and metrics
Expand Down

0 comments on commit 2ef3b48

Please sign in to comment.