Skip to content

Commit 54bcaf0

Browse files
authored
Merge pull request #113 from splitio/feature/oneSingleQueue
[SDKS-285]: Python Sdk: Move to a single impressions queue
2 parents 1c22fc9 + 39cb47d commit 54bcaf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

splitio/clients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _record_stats(self, impressions, start, operation):
243243
try:
244244
end = int(round(time.time() * 1000))
245245
if operation == SDK_GET_TREATMENT:
246-
self._broker.log_impression(impressions)
246+
self._broker.log_impressions([impressions])
247247
else:
248248
self._broker.log_impressions(impressions)
249249
self._broker.log_operation_time(operation, end - start)

splitio/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ def get_ip():
2525

2626
def get_hostname():
2727
ip = get_ip()
28-
return 'unknown' if ip != '' else 'ip-' + ip.replace('.', '-')
28+
return 'unknown' if ip == 'unknown' else 'ip-' + ip.replace('.', '-')

splitio/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '6.3.0-rc1'
1+
__version__ = '6.3.0-rc2'

0 commit comments

Comments
 (0)