瀏覽代碼

Cosmetics

Mher Movsisyan 12 年之前
父節點
當前提交
189eb3b648
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      celery/worker/state.py

+ 1 - 1
celery/worker/state.py

@@ -40,7 +40,7 @@ reserved_requests = set()
 active_requests = set()
 
 #: count of tasks executed by the worker, sorted by type.
-total_count = defaultdict(lambda: 0)
+total_count = defaultdict(int)
 
 #: the list of currently revoked tasks.  Persistent if statedb set.
 revoked = LimitedSet(maxlen=REVOKES_MAX, expires=REVOKE_EXPIRES)