gnocchixyz / gnocchi

Timeseries database
Apache License 2.0
298 stars 84 forks source link

redis: Fix types of some options #1372

Closed kajinamit closed 4 months ago

kajinamit commented 5 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.