mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-12-13 23:29:02 +00:00
Minor cleanup
This commit is contained in:
@@ -42,7 +42,7 @@ func (w *WorkerContext) Worker(results chan<- File) {
|
||||
}
|
||||
|
||||
func (w *WorkerContext) step(results chan<- File, job Job) {
|
||||
defer w.finishJob(&job)
|
||||
defer w.finishJob()
|
||||
|
||||
var f File
|
||||
|
||||
@@ -175,7 +175,7 @@ func (w *WorkerContext) queueJob(job Job) {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *WorkerContext) finishJob(job *Job) {
|
||||
func (w *WorkerContext) finishJob() {
|
||||
w.OD.Wait.Done()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user