From 8fc959216cbea4af100dd38011a1b5466d0628bb Mon Sep 17 00:00:00 2001 From: Ozan Tezcan Date: Mon, 9 May 2022 12:38:45 +0300 Subject: [PATCH] Fix RM_Scan() documentation (#10693) Fixed RM_Scan() usage example: `RedisModuleCursor` -> `RedisModuleScanCursor` --- src/module.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module.c b/src/module.c index 99d2adcd4..4bdaecb8a 100644 --- a/src/module.c +++ b/src/module.c @@ -9868,14 +9868,14 @@ void RM_ScanCursorDestroy(RedisModuleScanCursor *cursor) { * * The way it should be used: * - * RedisModuleCursor *c = RedisModule_ScanCursorCreate(); + * RedisModuleScanCursor *c = RedisModule_ScanCursorCreate(); * while(RedisModule_Scan(ctx, c, callback, privateData)); * RedisModule_ScanCursorDestroy(c); * * It is also possible to use this API from another thread while the lock * is acquired during the actual call to RM_Scan: * - * RedisModuleCursor *c = RedisModule_ScanCursorCreate(); + * RedisModuleScanCursor *c = RedisModule_ScanCursorCreate(); * RedisModule_ThreadSafeContextLock(ctx); * while(RedisModule_Scan(ctx, c, callback, privateData)){ * RedisModule_ThreadSafeContextUnlock(ctx); @@ -9963,7 +9963,7 @@ static void moduleScanKeyCallback(void *privdata, const dictEntry *de) { * * The way it should be used: * - * RedisModuleCursor *c = RedisModule_ScanCursorCreate(); + * RedisModuleScanCursor *c = RedisModule_ScanCursorCreate(); * RedisModuleKey *key = RedisModule_OpenKey(...) * while(RedisModule_ScanKey(key, c, callback, privateData)); * RedisModule_CloseKey(key); @@ -9972,7 +9972,7 @@ static void moduleScanKeyCallback(void *privdata, const dictEntry *de) { * It is also possible to use this API from another thread while the lock is acquired during * the actual call to RM_ScanKey, and re-opening the key each time: * - * RedisModuleCursor *c = RedisModule_ScanCursorCreate(); + * RedisModuleScanCursor *c = RedisModule_ScanCursorCreate(); * RedisModule_ThreadSafeContextLock(ctx); * RedisModuleKey *key = RedisModule_OpenKey(...) * while(RedisModule_ScanKey(ctx, c, callback, privateData)){