Commit 94cc109
fix: resolver delayed next query on fast empty responses unnecessarily
When consul returned no addresses 2x times in a row but different waitIndices
the next query was delayed for 50ms.
The following query should only be delayed if the same addresses and same
WaitIndex is returned then in the previous call.
The cause was that lastWaitIndex was set to the new waitIndex after the query
was returned, before the check.1 parent dfa6743 commit 94cc109
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments