Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mainak55512 committed Sep 14, 2024
1 parent 83afaaf commit b456709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ func GetFiles(
wgDir := &sync.WaitGroup{}
muDir := &sync.RWMutex{}

// Limited goroutines to 10000
// Limited goroutines to 1000
// buffer is set to high to avoid deadlock
max_goroutines_dir := 10000
max_goroutines_dir := 1000

// this channel will limit the goroutine number
guardDir := make(chan struct{}, max_goroutines_dir)
Expand Down

0 comments on commit b456709

Please sign in to comment.