Skip to content

Commit

Permalink
fix: suffix with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 12, 2024
1 parent ce5f45a commit e2a4430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/allocationstore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type DsAllocationStore struct {
}

func (d *DsAllocationStore) List(ctx context.Context, digest multihash.Multihash) ([]allocation.Allocation, error) {
pfx := digestutil.Format(digest)
pfx := digestutil.Format(digest) + "/"
results, err := d.data.Query(ctx, query.Query{Prefix: pfx})
if err != nil {
return nil, fmt.Errorf("querying datastore: %w", err)
Expand Down

0 comments on commit e2a4430

Please sign in to comment.