expected argument 'timeout' to 'ConnectionPool(Redis).new' to be Time::Span, not Float64
In pool0.3.0 the float timeout initializer was deprecated in favor of a Time::Span. I would not have thought this would break the build since it is only deprecated (and not removed), but maybe I'm not understanding how deprecations work in Crystal.
Regardless, this PR changes the float value to a Time::Span to conform with the new initializer. I also marked the pool shard as dependent on >= 0.3.0. Let me know if that is undesirable.
The scheduled specs appear to be broken at the moment due to some changes in the
pool
shard with version 0.3.0 which ultimately addressed some concurrency issues as reported in https://github.com/stefanwille/crystal-redis/pull/132.Here is an example build failure along with the error messages:
In
pool
0.3.0 the floattimeout
initializer was deprecated in favor of a Time::Span. I would not have thought this would break the build since it is only deprecated (and not removed), but maybe I'm not understanding how deprecations work in Crystal.Regardless, this PR changes the float value to a Time::Span to conform with the new initializer. I also marked the
pool
shard as dependent on >= 0.3.0. Let me know if that is undesirable.