From f8dbcddc52bddff2fb4a428fdb1bc9d4f43b163d Mon Sep 17 00:00:00 2001 From: Pieter Loubser Date: Fri, 18 Oct 2024 10:23:18 +0100 Subject: [PATCH] (maint) Fix kv watch context to avoid timeouts --- cli/kv_command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/kv_command.go b/cli/kv_command.go index 3dd8aae2..c9104013 100644 --- a/cli/kv_command.go +++ b/cli/kv_command.go @@ -725,8 +725,7 @@ func (c *kvCommand) watchAction(_ *fisk.ParseContext) error { return err } - ctx, cancel := context.WithTimeout(ctx, opts().Timeout) - defer cancel() + ctx := context.Background() watch, err := store.Watch(ctx, c.key) if err != nil {