-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeouts for redis client gotten via sentinel #1167
Conversation
Is this closer to your thinking? I am also guessing I should squash commits, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work, please fix & squash.
docsrs, | ||
doc(cfg(any(feature = "tokio-comp", feature = "async-std-comp"))) | ||
)] | ||
pub async fn get_multiplexed_async_connection_with_config( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_multiplexed_async_connection_with_timeouts
should call this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Good thought
24b0f5c
to
b90afdf
Compare
@jrylander looks like the change has some issues. Do you need help fixing this? |
Ahhrg, my bad. I was on a clean computer and could not run tests. I am sorry! |
0186350
to
d2b6c17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. please fix the formatting issue blocking the CI.
d2b6c17
to
5a95822
Compare
Ran cargo fmt --all |
They're replaced with a constructor that uses a shared config type after redis-rs#1167
They're replaced with a constructor that uses a shared config type after redis-rs#1167
They're replaced with a constructor that uses a shared config type after redis-rs#1167
Add a redis::sentinel::Sentinel::SentinelClient::get_async_connection_with_config that accepts timeouts
I have added just a happy test for calling with long timeouts. I am not versed enough to add a test for actual timeouts but am not sure it is needed since it just ships the parameters on to redis client.