Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmed-dev committed Jul 27, 2020
1 parent 994851c commit 198d143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/swsssdk/configdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def mod_config(self, data):
pipe.execute()
client.bgsave()

def _get_config(self, client, pipe, data, cursor):
def __get_config(self, client, pipe, data, cursor):
"""Read config data in batches of size REDIS_SCAN_BATCH_SIZE using Redis pipelines
Args:
client: Redis client
Expand Down Expand Up @@ -454,9 +454,9 @@ def get_config(self):
pipe = client.pipeline()
data = {}

cur = self._get_config(client, pipe, data, 0)
cur = self.__get_config(client, pipe, data, 0)
while cur != 0:
cur = self._get_config(client, pipe, data, cur)
cur = self.__get_config(client, pipe, data, cur)

return data

0 comments on commit 198d143

Please sign in to comment.