()
| 40 | |
| 41 | # init postgres db pool instance |
| 42 | async def init_database(): |
| 43 | logger.info("Initializing postgres database connection pool..") |
| 44 | await postgres_pool.init() |
| 45 | |
| 46 | logger.info("Initializing redis connection..") |
| 47 | await redis_conn.init() |
| 48 | |
| 49 | |
| 50 | # close postgres db pool instance |