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:
Brian Warner 2016-02-29 08:59:53 -08:00
parent 9293709e97
commit 0771aae7c7

View File

@ -46,6 +46,7 @@ class RelayServer(service.MultiService):
self.relayport_service = ServerEndpointService(r, site)
self.relayport_service.setServiceParent(self)
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)
if transitport:
self.transit = Transit(self.db, blur_usage)