server: Relay wasn't pruning channels
I forgot to hook it up to the service parent, so the timer was never started.
This commit is contained in:
parent
9293709e97
commit
0771aae7c7
|
@ -46,6 +46,7 @@ class RelayServer(service.MultiService):
|
||||||
self.relayport_service = ServerEndpointService(r, site)
|
self.relayport_service = ServerEndpointService(r, site)
|
||||||
self.relayport_service.setServiceParent(self)
|
self.relayport_service.setServiceParent(self)
|
||||||
self.relay = Relay(self.db, welcome, blur_usage) # accessible from tests
|
self.relay = Relay(self.db, welcome, blur_usage) # accessible from tests
|
||||||
|
self.relay.setServiceParent(self) # for the pruning timer
|
||||||
self.root.putChild(b"wormhole-relay", self.relay)
|
self.root.putChild(b"wormhole-relay", self.relay)
|
||||||
if transitport:
|
if transitport:
|
||||||
self.transit = Transit(self.db, blur_usage)
|
self.transit = Transit(self.db, blur_usage)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user