Skip to content

Commit

Permalink
fix: hardcode category to be batch
Browse files Browse the repository at this point in the history
  • Loading branch information
t0t07 committed Nov 12, 2021
1 parent 22ad68b commit e725d31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/oomstore/feature_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ import (
"context"

"github.com/oom-ai/oomstore/internal/database/metadatav2"
"github.com/oom-ai/oomstore/pkg/oomstore/types"
"github.com/oom-ai/oomstore/pkg/oomstore/typesv2"
)

func (s *OomStore) CreateFeatureGroup(ctx context.Context, opt metadatav2.CreateFeatureGroupOpt) (int16, error) {
// Via the oomstore API, we can only create a batch feature group
// So we hardcode the category to be batch
opt.Category = types.BatchFeatureCategory
return s.metadatav2.CreateFeatureGroup(ctx, opt)
}

Expand Down

0 comments on commit e725d31

Please sign in to comment.