Skip to content

Commit 38eb352

Browse files
committed
fix error wrt request source
1 parent cf3da66 commit 38eb352

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

go/internal/feast/server/http_server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ func (s *httpServer) getOnlineFeatures(w http.ResponseWriter, r *http.Request) {
284284
writeJSONError(w, errors.New("No entities specified in your request"), http.StatusBadRequest)
285285
return
286286
}
287-
if request.RequestContext != nil || len(request.RequestContext) > 0 {
288-
requestContextProto := make(map[string]*prototypes.RepeatedValue)
287+
if request.RequestContext != nil && len(request.RequestContext) > 0 {
289288
for key, value := range request.RequestContext {
290289
if requestSourceType, ok := unifiedMap[key]; !ok {
291290
logSpanContext.Error().Msgf("No request source type found for key %s", key)

0 commit comments

Comments
 (0)