get pool size from environment variable

This commit is contained in:
Frédéric Péters 2018-05-31 07:16:14 +02:00
parent 7ee4fc345b
commit 723d2c4c73
1 changed files with 2 additions and 1 deletions

View File

@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-
"""Init and utils."""
import os
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('pfwbged.policy')
POOL_SIZE = 1000
POOL_SIZE = int(os.environ.get('GED_POOL_SIZE', 1000))
def initialize(context):