Skip to content

Commit 198d143

Browse files
committed
review comments
1 parent 994851c commit 198d143

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/swsssdk/configdb.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def mod_config(self, data):
415415
pipe.execute()
416416
client.bgsave()
417417

418-
def _get_config(self, client, pipe, data, cursor):
418+
def __get_config(self, client, pipe, data, cursor):
419419
"""Read config data in batches of size REDIS_SCAN_BATCH_SIZE using Redis pipelines
420420
Args:
421421
client: Redis client
@@ -454,9 +454,9 @@ def get_config(self):
454454
pipe = client.pipeline()
455455
data = {}
456456

457-
cur = self._get_config(client, pipe, data, 0)
457+
cur = self.__get_config(client, pipe, data, 0)
458458
while cur != 0:
459-
cur = self._get_config(client, pipe, data, cur)
459+
cur = self.__get_config(client, pipe, data, cur)
460460

461461
return data
462462

0 commit comments

Comments
 (0)