From d106b90a8e60b8bd51fa30833fc942175d02e449 Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Sun, 29 May 2022 17:42:55 +0300 Subject: [PATCH] Add context to drain functions Signed-off-by: Sebastian Sch --- .github/workflows/go.yml | 4 ++-- pkg/daemon/daemon.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6387d2c51..7f17f11fe 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,9 +10,9 @@ jobs: steps: - name: Set up Go 1.18 - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.18.2 + go-version: '>=1.18.2' - name: Check out code into the Go module directory uses: actions/checkout@v2 diff --git a/pkg/daemon/daemon.go b/pkg/daemon/daemon.go index 619352b4f..7fcf8bbdc 100644 --- a/pkg/daemon/daemon.go +++ b/pkg/daemon/daemon.go @@ -164,6 +164,7 @@ func New( }, Out: writer{glog.Info}, ErrOut: writer{glog.Error}, + Ctx: context.Background(), }, workqueue: workqueue.NewNamedRateLimitingQueue(workqueue.NewMaxOfRateLimiter( &workqueue.BucketRateLimiter{Limiter: rate.NewLimiter(rate.Limit(updateDelay), 1)},