You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2022/02/02 00:49:26 UTC

[incubator-ponymail-foal] 01/02: range(1,1) is empty

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 767e6b23252b6dedb398b3f7aaee9fafd3ede47d
Author: Sebb <se...@apache.org>
AuthorDate: Wed Feb 2 00:40:22 2022 +0000

    range(1,1) is empty
---
 server/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/main.py b/server/main.py
index 39b7b72..abed550 100644
--- a/server/main.py
+++ b/server/main.py
@@ -89,7 +89,7 @@ class Server(plugins.server.BaseServer):
         pool_size = self.config.database.pool_size
         if pool_size < 1:
             raise ValueError(f"pool_size {pool_size} must be > 0")
-        for _ in range(1, pool_size):
+        for _ in range(0, pool_size): # stop value is exclusive
             self.dbpool.put_nowait(plugins.database.Database(self.config.database))
 
         # Load each URL endpoint