Skip to content

Commit c66c749

Browse files
authored
Bump emmett to 2.6 (#9330)
1 parent 188ddd5 commit c66c749

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

frameworks/Python/emmett/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _serialize(self, row):
3232
app.config.db.user = 'benchmarkdbuser'
3333
app.config.db.password = 'benchmarkdbpass'
3434
app.config.db.database = 'hello_world'
35-
app.config.db.pool_size = 10
35+
app.config.db.pool_size = 16
3636

3737
db = Database(app)
3838
db.define_models(World, Fortune)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
emmett[orjson]>=2.5.12,<2.6.0
2-
psycopg2-binary==2.9.5
1+
emmett[orjson]>=2.6.0,<2.7.0
2+
psycopg2-binary==2.9.9

frameworks/Python/emmett/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import multiprocessing
22

3-
from emmett.server import run
3+
from emmett_core.server import run
44

55

66
if __name__ == "__main__":
7-
workers = round(multiprocessing.cpu_count() / 2)
7+
workers = multiprocessing.cpu_count()
88

99
run(
1010
"rsgi",

0 commit comments

Comments
 (0)