diff options
author | valentinogeron <valentino@redislabs.com> | 2020-07-26 22:32:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 12:32:27 -0700 |
commit | 38b5ae543f5c99eb4ccabbe277770fc6bc81226f (patch) | |
tree | 9377e746a4fce5ab34730f16c06c11db3bbfb839 /examples/example-libevent.c | |
parent | 3bb985314d0563857c84beef0097ffc8de2d9438 (diff) |
add a command_timeout to redisContextOptions (#839)
Add an additional timeout so the user has a convenient way of controlling distinct connect and command timeouts
Diffstat (limited to 'examples/example-libevent.c')
-rw-r--r-- | examples/example-libevent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example-libevent.c b/examples/example-libevent.c index f3fa2a6..49bddd0 100644 --- a/examples/example-libevent.c +++ b/examples/example-libevent.c @@ -47,7 +47,7 @@ int main (int argc, char **argv) { REDIS_OPTIONS_SET_TCP(&options, "127.0.0.1", 6379); struct timeval tv = {0}; tv.tv_sec = 1; - options.timeout = &tv; + options.connect_timeout = &tv; redisAsyncContext *c = redisAsyncConnectWithOptions(&options); |