From a099660cceb5120519c2e3b32eddd3ef732ae22b Mon Sep 17 00:00:00 2001 From: chavacava Date: Sun, 17 Apr 2022 09:59:49 +0200 Subject: [PATCH 1/2] fix #12592 --- nomad/structs/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index 0dadc93752e5..ae8a87b5cc0b 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -296,7 +296,7 @@ func (q QueryOptions) TimeToBlock() time.Duration { return q.MaxQueryTime } -func (q QueryOptions) SetTimeToBlock(t time.Duration) { +func (q *QueryOptions) SetTimeToBlock(t time.Duration) { q.MaxQueryTime = t } From 761c6c36d5dbfba684e1b2cf50a907c007d4abe0 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 18 Apr 2022 10:21:27 -0400 Subject: [PATCH 2/2] add changelog entry --- .changelog/12593.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/12593.txt diff --git a/.changelog/12593.txt b/.changelog/12593.txt new file mode 100644 index 000000000000..a177f5d67fe0 --- /dev/null +++ b/.changelog/12593.txt @@ -0,0 +1,3 @@ +```release-note:bug +client: Fixed a bug where clients that retry blocking queries would not reset the correct blocking duration +```