mirror of
https://github.com/element-hq/synapse
synced 2024-09-11 13:35:13 +00:00
Remove the dead 'rate_limit_origin' method from TransportLayerServer
This commit is contained in:
parent
a901ed16b5
commit
ba8ac996f9
1 changed files with 0 additions and 6 deletions
|
@ -109,12 +109,6 @@ class TransportLayerServer(object):
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
return new_handler
|
return new_handler
|
||||||
|
|
||||||
def rate_limit_origin(self, handler):
|
|
||||||
def new_handler(origin, *args, **kwargs):
|
|
||||||
response = yield handler(origin, *args, **kwargs)
|
|
||||||
defer.returnValue(response)
|
|
||||||
return new_handler()
|
|
||||||
|
|
||||||
@log_function
|
@log_function
|
||||||
def register_received_handler(self, handler):
|
def register_received_handler(self, handler):
|
||||||
""" Register a handler that will be fired when we receive data.
|
""" Register a handler that will be fired when we receive data.
|
||||||
|
|
Loading…
Reference in a new issue