From 53cb6b4453b43c2cb6df62bacc716c918237fb92 Mon Sep 17 00:00:00 2001 From: Omri Bahumi Date: Thu, 21 Jul 2016 20:44:29 +0300 Subject: [PATCH] Fix example module --- example/module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/module.c b/example/module.c index 139a24a..b990a70 100644 --- a/example/module.c +++ b/example/module.c @@ -30,13 +30,13 @@ int ParseCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (RMUtil_ParseArgsAfter("PROD", argv, argc, "ll", &x, &y) == REDISMODULE_OK) { RedisModule_ReplyWithLongLong(ctx, x * y); - return REDISMODULE_ERR; + return REDISMODULE_OK; } // something is fishy... RedisModule_ReplyWithError(ctx, "Invalid arguments"); - return REDISMODULE_OK; + return REDISMODULE_ERR; } /* @@ -143,4 +143,4 @@ int RedisModule_OnLoad(RedisModuleCtx *ctx) { RMUtil_RegisterWriteCmd(ctx, "example.test", TestModule); return REDISMODULE_OK; -} \ No newline at end of file +}