This commit is contained in:
parent
154893d9f7
commit
38bd387002
1 changed files with 0 additions and 6 deletions
|
@ -110,12 +110,6 @@ func (s *scanner) queueDirectory(directory string, pkg string) {
|
||||||
|
|
||||||
// queueFile queues a single file to be scanned.
|
// queueFile queues a single file to be scanned.
|
||||||
func (s *scanner) queueFile(file string, pkg string) {
|
func (s *scanner) queueFile(file string, pkg string) {
|
||||||
_, loaded := s.queued.LoadOrStore(file, nil)
|
|
||||||
|
|
||||||
if loaded {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
s.group.Add(1)
|
s.group.Add(1)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue