QueryOptions.SetTimeToBlock should take pointer receiver
Fixes a bug where blocking queries that are retried don't have their blocking timeout reset, resulting in them running longer than expected.
This commit is contained in:
parent
0cf14a49cc
commit
eb1c42e643
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
client: Fixed a bug where clients that retry blocking queries would not reset the correct blocking duration
|
||||
```
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue