Skip to content
This repository
Browse code

cosmetic hanges

  • Loading branch information...
commit 9471a9a78ba2350439ae6997867c574307203f77 1 parent 27167b6
Alexander Lyalin authored
3  ngx_http_r4x_directive.c
@@ -73,8 +73,7 @@ ngx_http_r4x_compile_directive(ngx_conf_t *cf, ngx_http_r4x_loc_conf_t * loc_con
73 73
     
74 74
     value = cf->args->elts;
75 75
     
76  
-    if(ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0
77  
-        ||ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0) 
  76
+    if(ngx_memcmp(value[0].data, "redis_read_cmd", value[0].len) == 0)
78 77
     {    
79 78
         directive->read_only = 1;
80 79
     }
9  ngx_http_r4x_module.c
@@ -55,13 +55,6 @@ static ngx_command_t  ngx_http_r4x_commands[] = {
55 55
         NGX_HTTP_SRV_CONF_OFFSET,
56 56
         0,
57 57
         NULL },
58  
-
59  
-    {   ngx_string("redis_read_cmd"),
60  
-        NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
61  
-        ngx_http_r4x_exec_handler_init,
62  
-        NGX_HTTP_LOC_CONF_OFFSET,
63  
-        0,
64  
-        NULL },
65 58
         
66 59
     {   ngx_string("redis_read_cmd_ret"),
67 60
         NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
@@ -77,7 +70,7 @@ static ngx_command_t  ngx_http_r4x_commands[] = {
77 70
         0,
78 71
         NULL },
79 72
         
80  
-    {   ngx_string("redis_write_cmd_ret"),
  73
+    {   ngx_string("redis_write_cmd_return"),
81 74
         NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF|NGX_CONF_ANY,
82 75
         ngx_http_r4x_exec_return_handler_init,
83 76
         NGX_HTTP_LOC_CONF_OFFSET,
2  ngx_http_r4x_module.h
@@ -51,7 +51,7 @@ typedef struct {
51 51
 } ngx_http_r4x_parsed_json;
52 52
 
53 53
 typedef struct {
54  
-    ngx_array_t                         arguments;    // metadata for redis arguments
  54
+    ngx_array_t                         arguments;
55 55
     char                                **cmd_argvs;
56 56
     size_t                              *cmd_argv_lens;
57 57
     redisCallbackFn                     *process_reply;

0 notes on commit 9471a9a

Please sign in to comment.
Something went wrong with that request. Please try again.