Skip to content

Commit ef30b12

Browse files
authored
Merge branch 'master' into opentelemetry-tracing
2 parents 9b4972e + edfefc8 commit ef30b12

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

google/cloud/spanner_v1/snapshot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class Snapshot(_SnapshotBase):
436436
at a timestamp where all previously committed transactions are visible.
437437
438438
:type session: :class:`~google.cloud.spanner_v1.session.Session`
439-
:param session: the session used to perform the commit.
439+
:param session: The session used to perform the commit.
440440
441441
:type read_timestamp: :class:`datetime.datetime`
442442
:param read_timestamp: Execute all reads at the given timestamp.
@@ -454,7 +454,7 @@ class Snapshot(_SnapshotBase):
454454
``exact_staleness`` old.
455455
456456
:type multi_use: :class:`bool`
457-
:param multi_use: If true, multipl :meth:`read` / :meth:`execute_sql`
457+
:param multi_use: If true, multiple :meth:`read` / :meth:`execute_sql`
458458
calls can be performed with the snapshot in the
459459
context of a read-only transaction, used to ensure
460460
isolation / consistency. Incompatible with

google/cloud/spanner_v1/streamed.py

-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class StreamedResultSet(object):
4242
def __init__(self, response_iterator, source=None):
4343
self._response_iterator = response_iterator
4444
self._rows = [] # Fully-processed rows
45-
self._counter = 0 # Counter for processed responses
4645
self._metadata = None # Until set from first PRS
4746
self._stats = None # Until set from last PRS
4847
self._current_row = [] # Accumulated values for incomplete row
@@ -114,7 +113,6 @@ def _consume_next(self):
114113
Parse the result set into new/existing rows in :attr:`_rows`
115114
"""
116115
response = six.next(self._response_iterator)
117-
self._counter += 1
118116

119117
if self._metadata is None: # first response
120118
metadata = self._metadata = response.metadata

0 commit comments

Comments
 (0)