Browse Source

API-Hour FrameworkBenchmark: Small clean-up

Ludovic Gasc (GMLudo) 10 years ago
parent
commit
ade9f54401

+ 1 - 1
frameworks/Python/API-Hour/hello/hello/__init__.py

@@ -40,8 +40,8 @@ class Container(api_hour.Container):
         yield from super().start()
         LOG.info('Starting engines...')
         self.engines['pg'] = self.loop.create_task(aiopg.create_pool(host=os.environ.get('DBHOST', self.config['engines']['pg']['host']),
-                                                                     sslmode='disable',
                                                                      port=int(self.config['engines']['pg']['port']),
+                                                                     sslmode='disable',
                                                                      dbname=self.config['engines']['pg']['dbname'],
                                                                      user=self.config['engines']['pg']['user'],
                                                                      password=self.config['engines']['pg']['password'],

+ 0 - 1
frameworks/Python/API-Hour/hello/hello/services/world.py

@@ -1,5 +1,4 @@
 import asyncio
-from pprint import pprint
 from random import randint
 
 @asyncio.coroutine