Skip to content

Commit 921bf6e

Browse files
committed
fixed impressions.count key and ttl in redis
1 parent d5502ba commit 921bf6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splitio/engine/impressions/adapters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def flush_counters(self, to_send):
9393
"""
9494
bulk_counts = self._build_counters(to_send)
9595
try:
96-
inserted = self._redis_client.rpush(self.IMP_COUNT_QUEUE_KEY, *bulk_counts)
97-
self._expire_keys(self.IMP_COUNT_QUEUE_KEY, self.IMP_COUNT_KEY_DEFAULT_TTL, inserted, len(bulk_counts))
96+
inserted = self._redis_client.rpush(self.IMP_COUNT_QUEUE_KEY, bulk_counts)
97+
self._expire_keys(self.IMP_COUNT_QUEUE_KEY, self.IMP_COUNT_KEY_DEFAULT_TTL, inserted, len(to_send))
9898
return True
9999
except RedisAdapterException:
100100
_LOGGER.error('Something went wrong when trying to add counters to redis')

0 commit comments

Comments
 (0)