Skip to content

Commit

Permalink
Adservice returns error status code when feature flag is enabled (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Mar 26, 2024
1 parent 36d0215 commit 9ffee33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adservice/src/main/java/oteldemo/AdService.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void getAds(AdRequest req, StreamObserver<AdResponse> responseObserver) {
adRequestTypeKey, adRequestType.name(), adResponseTypeKey, adResponseType.name()));

if (getFeatureFlagEnabled(ADSERVICE_FAILURE)) {
throw new StatusRuntimeException(Status.RESOURCE_EXHAUSTED);
throw new StatusRuntimeException(Status.UNAVAILABLE);
}

if (getFeatureFlagEnabled(ADSERVICE_MANUAL_GC_FEATURE_FLAG)) {
Expand Down

0 comments on commit 9ffee33

Please sign in to comment.