Skip to content

Conversation

@nicholasgribanov
Copy link

No description provided.

consul/base.py Outdated
service=service,
passing=passing,
dc=dc,
)[1]}

Choose a reason for hiding this comment

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

сделай через матчинг
_, service_health = health_client.service(...
self.cache = {self.service: service_health}

понять, что там за [1] куда сложнее будет

Copy link
Author

Choose a reason for hiding this comment

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

Есть контакт

passing=passing,
dc=dc,
)
self.cache = {self.service: service_health}

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.

Кстати да) это прям очень хорошо будет. Сейчас вставлю

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.

3 participants