Skip to content

Commit

Permalink
fix queue init
Browse files Browse the repository at this point in the history
  • Loading branch information
legowerewolf committed Dec 16, 2024
1 parent b3498b4 commit 2208e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func main() {
returnedWorks := make(chan string) // relays detected work URLs back to coordinator
returnedSeries := make(chan string) // ditto for series
finished := make(chan int) // tells coordinator when a crawl is finished
queue := deque.New[string](pages) // stores URLs to be crawled
var queue deque.Deque[string] // stores URLs to be crawled
workSet := mapset.NewSet[string]() // stores URLs of works that have been detected
seriesSet := mapset.NewSet[string]() // ditto for series

Expand Down

0 comments on commit 2208e3a

Please sign in to comment.