Skip to content

Commit

Permalink
Use POLL_FLIGHT_INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 1, 2023
1 parent 067320e commit 5d71b7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public enum FlightMethod {
DO_ACTION,
LIST_ACTIONS,
DO_EXCHANGE,
POLL_FLIGHT_INFO,
;

/**
Expand Down Expand Up @@ -59,7 +60,7 @@ public static FlightMethod fromProtocol(final String methodName) {
} else if (FlightServiceGrpc.getDoExchangeMethod().getFullMethodName().equals(methodName)) {
return DO_EXCHANGE;
} else if (FlightServiceGrpc.getPollFlightInfoMethod().getFullMethodName().equals(methodName)) {
return DO_EXCHANGE;
return POLL_FLIGHT_INFO;
}
throw new IllegalArgumentException("Not a Flight method name in gRPC: " + methodName);
}
Expand Down

0 comments on commit 5d71b7d

Please sign in to comment.