Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
897f5f94
Commit
897f5f94
authored
Oct 16, 2019
by
antirez
Browse files
Modules: fix RedisModule_GetClientInfoById() example.
parent
e7b24571
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
897f5f94
...
...
@@ -1547,7 +1547,7 @@ unsigned long long RM_GetClientId(RedisModuleCtx *ctx) {
* returned:
*
* RedisModuleClientInfo ci = REDISMODULE_CLIENTINFO_INITIALIZER;
* int retval = RedisModule_GetClientInfoById(
ctx,&ci
);
* int retval = RedisModule_GetClientInfoById(
&ci,client_id
);
* if (retval == REDISMODULE_OK) {
* printf("Address: %s\n", ci.addr);
* }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment