Skip to content

Commit

Permalink
refactor: remove unused _count attribute from StreamedResultSet class (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurov Ilya committed Jul 14, 2020
1 parent 63b4324 commit edfefc8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions google/cloud/spanner_v1/streamed.py
Expand Up @@ -42,7 +42,6 @@ class StreamedResultSet(object):
def __init__(self, response_iterator, source=None):
self._response_iterator = response_iterator
self._rows = [] # Fully-processed rows
self._counter = 0 # Counter for processed responses
self._metadata = None # Until set from first PRS
self._stats = None # Until set from last PRS
self._current_row = [] # Accumulated values for incomplete row
Expand Down Expand Up @@ -114,7 +113,6 @@ def _consume_next(self):
Parse the result set into new/existing rows in :attr:`_rows`
"""
response = six.next(self._response_iterator)
self._counter += 1

if self._metadata is None: # first response
metadata = self._metadata = response.metadata
Expand Down

0 comments on commit edfefc8

Please sign in to comment.