From d361307f5c238e34fc36aff381c01bd40c12ffac Mon Sep 17 00:00:00 2001 From: "bdodla@expedia.com" <13788369+EXPEbdodla@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:41:11 -0700 Subject: [PATCH] using feature view list instead of feature view (#48) Co-authored-by: Bhargav Dodla --- go/internal/feast/registry/http.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/internal/feast/registry/http.go b/go/internal/feast/registry/http.go index 5b611500b3..260acd9d43 100644 --- a/go/internal/feast/registry/http.go +++ b/go/internal/feast/registry/http.go @@ -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 }) }