From 198d14328bd096bd344197e554791af044931aaf Mon Sep 17 00:00:00 2001 From: Tamer Ahmed Date: Mon, 27 Jul 2020 10:26:40 -0700 Subject: [PATCH] review comments --- src/swsssdk/configdb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/swsssdk/configdb.py b/src/swsssdk/configdb.py index ab0ee86dc97f..8fcad0b4c689 100644 --- a/src/swsssdk/configdb.py +++ b/src/swsssdk/configdb.py @@ -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 @@ -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