Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Add fmt pkg #13

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main

import (
"flag"
"fmt"

"github.com/circonus-labs/gosnowth"
"github.com/circonus-labs/irondb-prometheus-adapter/handlers"
Expand Down
2 changes: 1 addition & 1 deletion handlers/prometheus2_0.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func PrometheusRead2_0(ctx echo.Context) error {
var tsChan = make(chan *prompb.TimeSeries, 100)

var step = 60 * time.Second
if q.Hints.StepMs > 0 {
if q.Hints != nil && q.Hints.StepMs > 0 {
step = time.Duration(q.Hints.StepMs) * time.Millisecond
}

Expand Down