Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaibbq committed Apr 11, 2024
1 parent 2437402 commit 3c3d0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/metadata/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (j *Job) Wait(ctx context.Context) (*internaltypes.QueryResponse, error) {
j.mu.Lock()
defer j.mu.Unlock()

if j.response != nil {
return j.response, nil
if j.response != nil || j.err != nil {
return j.response, j.err
}

ticker := time.NewTicker(100 * time.Millisecond)
Expand Down

0 comments on commit 3c3d0c2

Please sign in to comment.