Skip to content

Commit

Permalink
Lint the changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSiu1995 committed Jul 1, 2021
1 parent afe84d2 commit b0e315f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _start_guarded_span(self, *args, **kwargs):
return _GuardedSpan(self._start_span(*args, **kwargs))

def intercept_unary(self, request, metadata, client_info, invoker):
if context.get_value( _SUPPRESS_INSTRUMENTATION_KEY):
if context.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
return invoker(request, metadata)

if not metadata:
Expand Down Expand Up @@ -193,7 +193,7 @@ def _intercept_server_stream(
def intercept_stream(
self, request_or_iterator, metadata, client_info, invoker
):
if context.get_value( _SUPPRESS_INSTRUMENTATION_KEY):
if context.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
return invoker(request_or_iterator, metadata)

if client_info.is_server_stream:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def test_stream_unary(self):
},
)


def test_stream_stream(self):
bidirectional_streaming_method(self._stub)
spans = self.memory_exporter.get_finished_spans()
Expand Down

0 comments on commit b0e315f

Please sign in to comment.