Skip to content

Commit a231b0d

Browse files
authored
Merge pull request #800 from Iceber/fix_typo
synchro/queue: change HasInitialEvent to HasInitialEvents
2 parents 54008ab + bf65f3b commit a231b0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/synchromanager/clustersynchro/default_resource_synchro.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (synchro *resourceSynchro) Start(stopCh <-chan struct{}) {
315315
i := informer.NewResourceVersionInformer(synchro.cluster, config)
316316
go func() {
317317
synchro.initialListPhase.Store(true)
318-
if !cache.WaitForCacheSync(informerStopCh, i.HasSynced, func() bool { return !synchro.queue.HasInitialEvent() }) {
318+
if !cache.WaitForCacheSync(informerStopCh, i.HasSynced, func() bool { return !synchro.queue.HasInitialEvents() }) {
319319
synchro.initialListPhase.Store(false)
320320
return
321321
}

pkg/synchromanager/resourcesynchro/queue/pressurequeue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (q *pressurequeue) Done(event *Event) error {
123123
return nil
124124
}
125125

126-
func (q *pressurequeue) HasInitialEvent() bool {
126+
func (q *pressurequeue) HasInitialEvents() bool {
127127
q.lock.Lock()
128128
defer q.lock.Unlock()
129129
return q.initialCount > 0

pkg/synchromanager/resourcesynchro/queue/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type EventQueue interface {
1414

1515
Len() int
1616
DiscardAndRetain(retain int) bool
17-
HasInitialEvent() bool
17+
HasInitialEvents() bool
1818

1919
Close()
2020
}

0 commit comments

Comments
 (0)