Skip to content

Commit

Permalink
Fix crash on "warp get" preparation (#269)
Browse files Browse the repository at this point in the history
Fix crash on warp get prepare

Regression in v0.7.1
  • Loading branch information
klauspost authored Jun 13, 2023
1 parent d6d0e4e commit 5811dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bench/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type Get struct {
// and upload a number of objects.
func (g *Get) Prepare(ctx context.Context) error {
// prepare the bench by listing object from the bucket
g.addCollector()
if g.ListExisting {
cl, done := g.Client()

Expand Down Expand Up @@ -113,7 +114,6 @@ func (g *Get) Prepare(ctx context.Context) error {
return (fmt.Errorf("no objects found for bucket %s", g.Bucket))
}
done()
g.addCollector()
return nil
}

Expand Down

0 comments on commit 5811dcc

Please sign in to comment.