mirror of https://github.com/grpc/grpc-java.git
api: Add grpc-okhttp to suggestions if no server is available
Since 3b61799
OkHttp can support Grpc.newServerBuilderForPort().
This commit is contained in:
parent
6335e0be3e
commit
b839b38b83
|
@ -138,7 +138,8 @@ public final class ServerRegistry {
|
|||
List<ServerProvider> providers = providers();
|
||||
if (providers.isEmpty()) {
|
||||
throw new ProviderNotFoundException("No functional server found. "
|
||||
+ "Try adding a dependency on the grpc-netty or grpc-netty-shaded artifact");
|
||||
+ "Try adding a dependency on the grpc-netty, grpc-netty-shaded, or grpc-okhttp "
|
||||
+ "artifact");
|
||||
}
|
||||
StringBuilder error = new StringBuilder();
|
||||
for (ServerProvider provider : providers()) {
|
||||
|
|
Loading…
Reference in New Issue