Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Fixed nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasHaderer committed Dec 15, 2023
1 parent caf867d commit 3090701
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/worker/worker_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func (w *Worker) GetWork() (*CompleteWorkPackage, error) {
if err != nil {
return nil, err
}
if work == nil {
return nil, nil
}

return w.GetSequencesForWork(work)
}
Expand Down Expand Up @@ -189,7 +192,7 @@ func findAlignmentWithFallback(query, target string, alignmentScore smithwaterma
}

func (w *Worker) ExecuteWorkInParallel(work *CompleteWorkPackage) {
var cpuCount = runtime.NumCPU()
var cpuCount = runtime.NumCPU() - 1
var workPackages = work.Queries
var numWorkPackages = len(workPackages)

Expand Down

0 comments on commit 3090701

Please sign in to comment.