Status error when LeakResult.Error != ""
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -111,7 +111,11 @@ func Search(s *server.Server, q Query, r *Result, mu *sync.RWMutex) {
|
|||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
r.Status = "completed"
|
if r.LeakResult.Error != "" {
|
||||||
|
r.Status = "error"
|
||||||
|
} else {
|
||||||
|
r.Status = "completed"
|
||||||
|
}
|
||||||
mu.Unlock()
|
mu.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user