Browse Source

Bump emmett to 2.6 (#9330)

Giovanni Barillari 9 months ago
parent
commit
c66c74940d

+ 1 - 1
frameworks/Python/emmett/app.py

@@ -32,7 +32,7 @@ app.config.db.host = 'tfb-database'
 app.config.db.user = 'benchmarkdbuser'
 app.config.db.password = 'benchmarkdbpass'
 app.config.db.database = 'hello_world'
-app.config.db.pool_size = 10
+app.config.db.pool_size = 16
 
 db = Database(app)
 db.define_models(World, Fortune)

+ 2 - 2
frameworks/Python/emmett/requirements.txt

@@ -1,2 +1,2 @@
-emmett[orjson]>=2.5.12,<2.6.0
-psycopg2-binary==2.9.5
+emmett[orjson]>=2.6.0,<2.7.0
+psycopg2-binary==2.9.9

+ 2 - 2
frameworks/Python/emmett/run.py

@@ -1,10 +1,10 @@
 import multiprocessing
 
-from emmett.server import run
+from emmett_core.server import run
 
 
 if __name__ == "__main__":
-    workers = round(multiprocessing.cpu_count() / 2)
+    workers = multiprocessing.cpu_count()
 
     run(
         "rsgi",