improve cidr matcher
This commit is contained in:
@ -125,7 +125,6 @@ func (p *admission) periodReload(ctx context.Context) error {
|
||||
p.options.logger.Warnf("reload: %v", err)
|
||||
// return err
|
||||
}
|
||||
p.options.logger.Debug("admission reload done")
|
||||
case <-ctx.Done():
|
||||
return ctx.Err()
|
||||
}
|
||||
@ -201,6 +200,7 @@ func (p *admission) load(ctx context.Context) (patterns []string, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
p.options.logger.Debugf("load items %d", len(patterns))
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user