HomePhabricator
Diffusion Comm 41dc63dfca2d

[services] Tunnelbroker - Message expiration fulfill moved to database…

Description

[services] Tunnelbroker - Message expiration fulfill moved to database manager's insert

Summary:
Removing the expire from the constructor because we will fulfill it at the DB insertion phase at DatabaseManager's insert.

Constant with the max message TTL in the database was added.

Test Plan: Run yarn test-tunnelbroker-service all tests are run and succeed.

Reviewers: karol-bisztyga, ashoat

Reviewed By: karol-bisztyga, ashoat

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, benschac, yayabosh

Differential Revision: https://phabricator.ashoat.com/D3808

Details