Skip to content

Commit

Permalink
(maint) Fix kv watch context to avoid timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ploubser committed Oct 18, 2024
1 parent 8f8cff9 commit f8dbcdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/kv_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f8dbcdd

Please sign in to comment.