Skip to content

Commit b087b67

Browse files
committed
Replicate PerResultWaiterCount to fake_consolidator
1 parent 9b55573 commit b087b67

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

go/sync2/fake_consolidator.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ type FakePendingResult struct {
5353
WaitCalls int
5454
// AddWaiterCounterCalls can be used to inspect AddWaiterCounter calls.
5555
AddWaiterCounterCalls []int64
56-
// WaiterCount simulates the current waiter count
5756
WaiterCount int64
58-
err error
59-
result *sqltypes.Result
57+
PerResultWaiterCount int64
58+
err error
59+
result *sqltypes.Result
6060
}
6161

6262
var (
@@ -118,7 +118,7 @@ func (fr *FakePendingResult) Wait() {
118118
}
119119

120120
func (fr *FakePendingResult) HasWaiters() bool {
121-
return fr.WaiterCount > 0
121+
return fr.PerResultWaiterCount > 0
122122
}
123123

124124
// AddWaiterCounter records the call and simulates waiter count changes.

0 commit comments

Comments
 (0)