Skip to content

Commit

Permalink
change config for mysql metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Ivanov committed May 23, 2018
1 parent 83f2fb1 commit e446c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp_prometheus_monitoring/metrics/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, database, user, password, host, port=3006, *args, **kwargs):
super().__init__(*args, **kwargs)

self.connection_params = {
'database': database,
'db': database,
'user': user,
'password': password,
'host': host,
Expand All @@ -29,4 +29,4 @@ async def select_one(connection_params):

async def check(self):
response = await self.select_one(self.connection_params)
return response == [(1,)]
return response == ((1,),)

0 comments on commit e446c45

Please sign in to comment.