Skip to content

Commit

Permalink
HQ: mark the item as done when host is excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Apr 26, 2024
1 parent 60e711f commit 52b2551
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/pkg/crawl/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func (c *Crawl) Worker() {

// If the host of the item is in the host exclusion list, we skip it
if utils.StringInSlice(item.Host, c.ExcludedHosts) || !c.checkIncludedHosts(item.Host) {
if c.UseHQ {
// If we are using the HQ, we want to mark the item as done
c.HQFinishedChannel <- item
}

continue
}

Expand Down

0 comments on commit 52b2551

Please sign in to comment.