Skip to content

Commit

Permalink
Enable Bidi reopen throttling in SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Jun 11, 2019
1 parent 98f359f commit 9c9a10b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -383,6 +383,7 @@ def open(self, callback, on_callback_error):
start_rpc=self._client.api.streaming_pull,
initial_request=self._get_initial_request,
should_recover=self._should_recover,
throttle_reopen=True,
)
self._rpc.add_done_callback(self._on_rpc_done)

Expand Down
Expand Up @@ -428,6 +428,7 @@ def test_open(heartbeater, dispatcher, leaser, background_consumer, resumable_bi
start_rpc=manager._client.api.streaming_pull,
initial_request=manager._get_initial_request,
should_recover=manager._should_recover,
throttle_reopen=True,
)
resumable_bidi_rpc.return_value.add_done_callback.assert_called_once_with(
manager._on_rpc_done
Expand Down

0 comments on commit 9c9a10b

Please sign in to comment.