Skip to content

Commit

Permalink
fix error wrt request source
Browse files Browse the repository at this point in the history
  • Loading branch information
msistla96 committed May 15, 2024
1 parent cf3da66 commit 38eb352
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/internal/feast/server/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ func (s *httpServer) getOnlineFeatures(w http.ResponseWriter, r *http.Request) {
writeJSONError(w, errors.New("No entities specified in your request"), http.StatusBadRequest)
return
}
if request.RequestContext != nil || len(request.RequestContext) > 0 {
requestContextProto := make(map[string]*prototypes.RepeatedValue)
if request.RequestContext != nil && len(request.RequestContext) > 0 {
for key, value := range request.RequestContext {
if requestSourceType, ok := unifiedMap[key]; !ok {
logSpanContext.Error().Msgf("No request source type found for key %s", key)
Expand Down

0 comments on commit 38eb352

Please sign in to comment.