Skip to content

Commit

Permalink
Fix: EnsureStorageNamespace close reader (#8346)
Browse files Browse the repository at this point in the history
  • Loading branch information
N-o-Z authored Nov 5, 2024
1 parent aec8edb commit bf98183
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/api/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2112,8 +2112,12 @@ func (c *Controller) ensureStorageNamespace(ctx context.Context, storageNamespac
return err
}

_, err := c.BlockAdapter.Get(ctx, obj)
return err
s, err := c.BlockAdapter.Get(ctx, obj)
if err != nil {
return err
}
_ = s.Close()
return nil
}

func (c *Controller) DeleteRepository(w http.ResponseWriter, r *http.Request, repository string, params apigen.DeleteRepositoryParams) {
Expand Down

0 comments on commit bf98183

Please sign in to comment.