fix cr suggestion
Change-Id: Ic1c90803c4fe8a43d1192a65ca2d331364a50eab
This commit is contained in:
parent
b209349e7f
commit
083c5aa790
@ -1302,10 +1302,10 @@ func (this *Migrator) executeWriteFuncs() error {
|
|||||||
|
|
||||||
func (this *Migrator) drainApplierEventQueue() error {
|
func (this *Migrator) drainApplierEventQueue() error {
|
||||||
for {
|
for {
|
||||||
this.throttler.throttle(nil)
|
|
||||||
select {
|
select {
|
||||||
case eventStruct := <-this.applyEventsQueue:
|
case eventStruct := <-this.applyEventsQueue:
|
||||||
{
|
{
|
||||||
|
this.throttler.throttle(nil)
|
||||||
if err := this.onApplyEventStruct(eventStruct); err != nil {
|
if err := this.onApplyEventStruct(eventStruct); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user