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 +}