From 4465091119fec273707d3b1c4261ceeffbe9f689 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 17 Dec 2024 14:38:01 +0545 Subject: [PATCH] chore: comment out unused code for check query params --- pkg/jobs/canary/status.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/jobs/canary/status.go b/pkg/jobs/canary/status.go index 6726ec7b5..bafd2df0b 100644 --- a/pkg/jobs/canary/status.go +++ b/pkg/jobs/canary/status.go @@ -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" @@ -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 {