Skip to content

Commit

Permalink
using feature view list instead of feature view (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Bhargav Dodla <[email protected]>
  • Loading branch information
EXPEbdodla and Bhargav Dodla authored Oct 3, 2023
1 parent 7979543 commit d361307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/internal/feast/registry/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func (r *HttpRegistryStore) loadDatasources(registry *core.Registry) error {
func (r *HttpRegistryStore) loadFeatureViews(registry *core.Registry) error {
url := fmt.Sprintf("%s/projects/%s/feature_views?allow_cache=true", r.endpoint, r.project)
return r.loadProtobufMessages(url, func(data []byte) error {
feature_view := &core.FeatureView{}
if err := proto.Unmarshal(data, feature_view); err != nil {
feature_view_list := &core.FeatureViewList{}
if err := proto.Unmarshal(data, feature_view_list); err != nil {
return err
}
registry.FeatureViews = append(registry.FeatureViews, feature_view)
registry.FeatureViews = append(registry.FeatureViews, feature_view_list.GetFeatureviews()...)
return nil
})
}
Expand Down

0 comments on commit d361307

Please sign in to comment.