8000 Fix the time unit of retry_interval · phpredis/phpredis@3fdd52b · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fdd52b

Browse files
woodongwongmichael-grunder
authored andcommitted
Fix the time unit of retry_interval
1 parent 6dc0a0b commit 3fdd52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@ redis_sock_create(char *host, int host_len, int port,
28592859
redis_sock->status = REDIS_SOCK_STATUS_DISCONNECTED;
28602860
redis_sock->retry_interval = retry_interval * 1000;
28612861
redis_sock->max_retries = 10;
2862-
redis_initialize_backoff(&redis_sock->backoff, retry_interval);
2862+
redis_initialize_backoff(&redis_sock->backoff, redis_sock->retry_interval);
28632863
redis_sock->persistent = persistent;
28642864

28652865
if (persistent && persistent_id != NULL) {

0 commit comments

Comments
 (0)
0