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 +``` 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 }