Skip to content

Commit

Permalink
fix: handle push error for internal cache (#544)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored Sep 8, 2022
1 parent 9ea7aee commit 45a1024
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cache/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func (t *target) cacheReadCloser(ctx context.Context, rc io.ReadCloser, target o
go func() {
defer wg.Done()
pushErr = t.cache.Push(ctx, target, pr)
if pushErr != nil {
pr.CloseWithError(pushErr)
}
}()

return struct {
Expand Down

0 comments on commit 45a1024

Please sign in to comment.