gnocchixyz / gnocchi

Timeseries database
Apache License 2.0
302 stars 85 forks source link

redis: Fix types of some options (backport #1372) #1401

Closed mergify[bot] closed 3 months ago

mergify[bot] commented 3 months ago

The socket_keepalive option in RedisClient is not an integer but a boolean. Also the healthcheck_interval option can accept not only integers but also float values. This fixes the types to parse these options accordingly.

Note this change still keeps support for socket_keepalive=1 or socket_keepalive=0 , but would remove support for the other integer values such as 2 or -1.


This is an automatic backport of pull request #1372 done by Mergify.