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

Commit

Permalink
fix: error handling improvements (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-laziest committed Apr 29, 2024
1 parent a352b40 commit c421f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions pkg/rpc/blob_datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ func (ds *BlobDataSource) GetBlobs(
}
}
}
err = nil
return sidecars, err
return sidecars, nil
}

// getBlobFromServer get blob data from server path `/getBlob`.
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpc/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ func waitSubErr(ctx context.Context, sub event.Subscription) (event.Subscription
case err := <-sub.Err():
return sub, err
case <-ctx.Done():
return sub, nil
return sub, ctx.Err()
}
}

0 comments on commit c421f0f

Please sign in to comment.