Skip to content

Commit

Permalink
fix IP-GC recording hostnetwork pod
Browse files Browse the repository at this point in the history
Signed-off-by: Icarus9913 <icaruswu66@qq.com>
  • Loading branch information
Icarus9913 committed Jun 13, 2023
1 parent 1f42a81 commit 46f8c7f
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 46f8c7f

Please # to comment.