diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-09-02 18:22:15 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-09-02 18:22:15 +0100 |
commit | 780548b577f5e59cd4f3aa03cf20dbf66a790a39 (patch) | |
tree | 3d1c561ccce226f60ff933f51643940fcf2d25fd /synapse/config | |
parent | Add ratelimiting config (diff) | |
download | synapse-780548b577f5e59cd4f3aa03cf20dbf66a790a39.tar.xz |
rate limiting for message sending
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/ratelimiting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/ratelimiting.py b/synapse/config/ratelimiting.py index 6c41d55d74..a64aeeb6b2 100644 --- a/synapse/config/ratelimiting.py +++ b/synapse/config/ratelimiting.py @@ -12,10 +12,10 @@ class RatelimitConfig(Config): super(RatelimitConfig, cls).add_arguments(parser) rc_group = parser.add_argument_group("ratelimiting") rc_group.add_argument( - "--rc-messages-per-second", type=float, default=0.2 + "--rc-messages-per-second", type=float, default=0.2, help="number of messages a client can send per second" ) rc_group.add_argument( - "--rc_messsage_burst_count", type=float, default=10 + "--rc-message-burst-count", type=float, default=10, help="number of message a client can send before being throttled" ) |