GC improvements

This commit is contained in:
Doug Hoyte
2023-01-29 15:52:27 -05:00
parent ee612416e0
commit 5117485ebf
7 changed files with 62 additions and 26 deletions

View File

@ -48,6 +48,10 @@ void RelayServer::run() {
cleanupOldEvents();
});
cron.repeat(60 * 60 * 1'000'000UL, [&]{
garbageCollect();
});
cron.setupCb = []{ setThreadName("cron"); };
cron.run();