Skip to content

Conversation

@nicholasgribanov
Copy link

No description provided.

consul/aio.py Outdated
connector = aiohttp.TCPConnector(loop=self._loop,
verify_ssl=self.verify)
async with aiohttp.ClientSession(connector=connector) as session:
async with aiohttp.ClientSession(connector=connector, timeout=ClientTimeout(total=800)) as session:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

это должно конфигуриться.
и нужна логика, чтобы нельзя было вызвать в неправильном сочетании параметров с watch

consul/base.py Outdated
assert total_timeout, \
'total_timeout should be setter'
assert not self._convert_wait_to_seconds(wait) >= total_timeout, \
'wait should be less than total_timeout'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно цифры еще добавить. Так легче ошибку будет искать

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавил

consul/base.py Outdated
params.append(('index', index))
if wait:
assert total_timeout, \
'total_timeout should be setter'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'total_timeout should be setter'
'total_timeout should be setted'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

исправил

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants