File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ exports.register = function () {
10
10
let needs_redis = 0
11
11
12
12
if ( this . cfg . concurrency . enabled ) {
13
+ needs_redis ++ ;
13
14
this . register_hook ( 'connect_init' , 'conn_concur_incr' ) ;
14
15
this . register_hook ( 'connect' , 'check_concurrency' ) ;
15
16
this . register_hook ( 'disconnect' , 'conn_concur_decr' ) ;
@@ -30,25 +31,25 @@ exports.register = function () {
30
31
}
31
32
32
33
if ( this . cfg . rate_conn . enabled ) {
33
- needs_redis ++
34
+ needs_redis ++ ;
34
35
this . register_hook ( 'connect_init' , 'rate_conn_incr' ) ;
35
36
this . register_hook ( 'connect' , 'rate_conn_enforce' ) ;
36
37
}
37
38
if ( this . cfg . rate_rcpt_host . enabled ) {
38
- needs_redis ++
39
+ needs_redis ++ ;
39
40
this . register_hook ( 'connect' , 'rate_rcpt_host_enforce' ) ;
40
41
this . register_hook ( 'rcpt' , 'rate_rcpt_host_incr' ) ;
41
42
}
42
43
if ( this . cfg . rate_rcpt_sender . enabled ) {
43
- needs_redis ++
44
+ needs_redis ++ ;
44
45
this . register_hook ( 'rcpt' , 'rate_rcpt_sender' ) ;
45
46
}
46
47
if ( this . cfg . rate_rcpt_null . enabled ) {
47
- needs_redis ++
48
+ needs_redis ++ ;
48
49
this . register_hook ( 'rcpt' , 'rate_rcpt_null' ) ;
49
50
}
50
51
if ( this . cfg . rate_rcpt . enabled ) {
51
- needs_redis ++
52
+ needs_redis ++ ;
52
53
this . register_hook ( 'rcpt' , 'rate_rcpt' ) ;
53
54
}
54
55
You can’t perform that action at this time.
0 commit comments