Skip to content

Commit

Permalink
Added guard for fedeback to only be sent for seldon protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored and seldondev committed Nov 23, 2020
1 parent a83445d commit dbc4591
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/api/rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,9 @@ func (smc *JSONRestClient) TransformOutput(ctx context.Context, modelName string
}

func (smc *JSONRestClient) Feedback(ctx context.Context, modelName string, host string, port int32, req payload.SeldonPayload, meta map[string][]string) (payload.SeldonPayload, error) {
// Currently feedback is enabled across all protocols but client only works on seldon protocol
if smc.Protocol != api.ProtocolSeldon {
return req, nil
}
return smc.call(ctx, modelName, smc.modifyMethod(client.SeldonFeedbackPath, modelName), host, port, req, meta)
}

0 comments on commit dbc4591

Please sign in to comment.