Skip to content

Commit

Permalink
bus: fix jape
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Feb 14, 2024
1 parent d90e42f commit 16d3d79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bus/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -1348,11 +1348,13 @@ func (b *bus) slabbuffersHandlerGET(jc jape.Context) {
}

func (b *bus) objectsStatshandlerGET(jc jape.Context) {
opts := api.ObjectsStatsOpts{}
if jc.DecodeForm(("bucket"), &opts.Bucket) != nil {
var bucket string
if jc.DecodeForm(("bucket"), &bucket) != nil {
return
}
info, err := b.ms.ObjectsStats(jc.Request.Context(), opts)
info, err := b.ms.ObjectsStats(jc.Request.Context(), api.ObjectsStatsOpts{
Bucket: bucket,
})
if jc.Check("couldn't get objects stats", err) != nil {
return
}
Expand Down

0 comments on commit 16d3d79

Please sign in to comment.