Skip to content

Commit

Permalink
Merge pull request #324 from anchore/decrease-polling-time
Browse files Browse the repository at this point in the history
chore: reduce max polling time from 24 hours to 1 hour
  • Loading branch information
bradleyjones authored Dec 17, 2024
2 parents 7bed9da + f66741f commit 2faf129
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"context"
"encoding/json"
"fmt"
"os"
"time"

"github.com/anchore/k8s-inventory/pkg/client"
"github.com/google/uuid"
"github.com/hashicorp/go-version"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"os"
"time"

"github.com/anchore/k8s-inventory/internal/anchore"
"github.com/anchore/k8s-inventory/internal/config"
Expand Down Expand Up @@ -96,7 +97,7 @@ type _Now func() time.Time
func PerformRegistration(appConfig *config.Application, ch Channels) (*Integration, error) {
defer closeChannels(ch)

_, err := awaitVersion(appConfig.AnchoreDetails, ch, -1, 2*time.Second, 24*time.Hour)
_, err := awaitVersion(appConfig.AnchoreDetails, ch, -1, 2*time.Second, 1*time.Hour)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2faf129

Please sign in to comment.