Explorar o código

Do not have to use buffer here. Closes #1438

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
5b963a1e2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      celery/concurrency/processes.py

+ 1 - 1
celery/concurrency/processes.py

@@ -672,7 +672,7 @@ class TaskPool(BasePool):
             header = pack('>I', body_size)
             # index 1,0 is the job ID.
             job = get_job(tup[1][0])
-            job._payload = header, buffer(body), body_size
+            job._payload = header, body, body_size
             put_message(job)
         self._pool._quick_put = send_job