Skip to content

Commit

Permalink
chore: ignore unused funcs to quiet golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Feb 6, 2024
1 parent 7d9e5ad commit 340ec2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func getCurrentKESPeriod(g *localstatequery.GenesisConfigResult) uint64 {
}

// Calculate epoch from current second
//
//nolint:unused
func getEpoch() uint64 {
cfg := config.GetConfig()
currentTimeSec := uint64(time.Now().Unix() - 1)
Expand Down Expand Up @@ -121,6 +123,7 @@ func timeLeft(t uint64) string {
return fmt.Sprintf("%s%02d:%02d:%02d", result, int(h), int(m), int(s))
}

//nolint:unused
func timeUntilNextEpoch() uint64 {
cfg := config.GetConfig()
currentTimeSec := uint64(time.Now().Unix() - 1)
Expand Down

0 comments on commit 340ec2a

Please sign in to comment.