fix(backend): memory leak in memory caches (#14363)
cherry picked from commit bf8c42eecd3d645652ddd7e69b727ced2a15457d Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Co-authored-by: Hazel K <acomputerdog@gmail.com>
This commit is contained in:
parent
6d4dc5ea20
commit
9e998cc10b
11 changed files with 99 additions and 86 deletions
|
@ -44,7 +44,7 @@ export class DeliverProcessorService {
|
|||
private queueLoggerService: QueueLoggerService,
|
||||
) {
|
||||
this.logger = this.queueLoggerService.logger.createSubLogger('deliver');
|
||||
this.suspendedHostsCache = new MemorySingleCache<MiInstance[]>(1000 * 60 * 60);
|
||||
this.suspendedHostsCache = new MemorySingleCache<MiInstance[]>(1000 * 60 * 60); // 1h
|
||||
}
|
||||
|
||||
@bindThis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue