mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 09:36:43 +00:00
GC improvements
This commit is contained in:
@ -48,6 +48,10 @@ void RelayServer::run() {
|
||||
cleanupOldEvents();
|
||||
});
|
||||
|
||||
cron.repeat(60 * 60 * 1'000'000UL, [&]{
|
||||
garbageCollect();
|
||||
});
|
||||
|
||||
cron.setupCb = []{ setThreadName("cron"); };
|
||||
|
||||
cron.run();
|
||||
|
Reference in New Issue
Block a user