| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| insecure_channel=mock_insecure_channel) | ||
| with patch: | ||
| result = self._call_fut(connection) | ||
| result = self._call_fut(None, host=host, secure=False) |
|
@dhermes I'm OK to merge without the change I suggested, if you don't think it would be an improvement. |
Sorry, something went wrong.
Sorry, something went wrong.
|
@dhermes It looks to me as though host unused in the non-emulated case. If so, then the call site becomes: if self.conn.in_emul:
channel = make_foo(host=emulator_host)
else:
channel = make_foo(credentials=credentials) |
Sorry, something went wrong.
Still using a method of a connection object, but this way it can be more easily swapped out for a function defined in that module doing the same task.
|
LGTM |
Sorry, something went wrong.
Removing most (direct) connection usage in Pub / Sub
Removing most (direct) connection usage in Pub / Sub
| Back | FazBrowse Home | New Git URL |
NOTE: Has #2870 as diffbase.