Skip to content

Commit

Permalink
[refactor] Remove HTTP/1.1 (gRPC-fallback) support. (#114)
Browse files Browse the repository at this point in the history
We do not yet have a credible testing strategy for gRPC fallback support
in generated clients. We will reintroduce this feature once we are able
to test it.
  • Loading branch information
lukesneeringer authored Mar 30, 2019
1 parent 8f31095 commit a079e3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,18 @@

{% block content %}
import collections
import typing

from .base import {{ service.name }}Transport
from .http import {{ service.name }}HttpTransport
from .grpc import {{ service.name }}GrpcTransport


# Compile a registry of transports.
_transport_registry = collections.OrderedDict()

# gRPC is not guaranteed to be available, because `grpcio` may or may not
# be installed. If it is available, however, it should be the "first in"
# (default).
try:
from .grpc import {{ service.name }}GrpcTransport
_transport_registry['grpc'] = {{ service.name }}GrpcTransport
except ImportError:
pass

# Always provide an HTTP/1.1 transport.
_transport_registry['http'] = {{ service.name }}HttpTransport
_transport_registry['grpc'] = {{ service.name }}GrpcTransport


__all__ = (
'{{ service.name }}Transport',
'{{ service.name }}GrpcTransport',
)
{% endblock %}

This file was deleted.

0 comments on commit a079e3f

Please sign in to comment.