Skip to content

Commit

Permalink
Merge pull request #1883 from Icarus9913/fix/wk/gc
Browse files Browse the repository at this point in the history
fix IP GC scan all running unhealthy
  • Loading branch information
weizhoublue authored Jun 13, 2023
2 parents 2abec5d + 46f8c7f commit eb9dde2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/gcmanager/scanAll_IPPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ func (s *SpiderGC) monitorGCSignal(ctx context.Context) {
timer := time.NewTimer(d)
defer timer.Stop()

logger.Debug("initial scan all for cluster firstly")
s.gcSignal <- struct{}{}
go func() {
logger.Debug("initial scan all for cluster firstly")
s.gcSignal <- struct{}{}
}()

for {
select {
Expand Down

0 comments on commit eb9dde2

Please # to comment.