Skip to content

Commit

Permalink
chore: comment out unused code for check query params
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Dec 17, 2024
1 parent 976f21b commit 4465091
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/jobs/canary/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/flanksource/canary-checker/pkg/metrics"
"github.com/flanksource/canary-checker/pkg/utils"
"github.com/flanksource/duty/context"
"github.com/flanksource/duty/query"
dutyTypes "github.com/flanksource/duty/types"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -59,10 +58,10 @@ func UpdateCanaryStatusAndEvent(ctx context.Context, canary v1.Canary, results [
}

// Transition
q := query.CheckQueryParams{Check: checkID, StatusCount: 1}
if canary.Status.LastTransitionedTime != nil {
q.Start = canary.Status.LastTransitionedTime.Format(time.RFC3339)
}
// q := query.CheckQueryParams{Check: checkID, StatusCount: 1}
// if canary.Status.LastTransitionedTime != nil {
// q.Start = canary.Status.LastTransitionedTime.Format(time.RFC3339)
// }

latestCheckStatus, err := db.LatestCheckStatus(ctx, checkID)
if err != nil || latestCheckStatus == nil {
Expand Down

0 comments on commit 4465091

Please sign in to comment.