map already returns an iterator, no need to wrap it in iter
Thanks to andreip for pointing it out!
This commit is contained in:
@@ -95,7 +95,7 @@ def _process_bulk_chunk(client, bulk_actions, raise_on_exception=True, raise_on_
|
|||||||
# deserialize the data back, thisis expensive but only run on
|
# deserialize the data back, thisis expensive but only run on
|
||||||
# errors if raise_on_exception is false, so shouldn't be a real
|
# errors if raise_on_exception is false, so shouldn't be a real
|
||||||
# issue
|
# issue
|
||||||
bulk_data = iter(map(client.transport.serializer.loads, bulk_actions))
|
bulk_data = map(client.transport.serializer.loads, bulk_actions)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# collect all the information about failed actions
|
# collect all the information about failed actions
|
||||||
|
|||||||
Reference in New Issue
Block a user