mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-10 03:55:29 +01:00
Revert back to static property
This commit is contained in:
parent
7ff54b9495
commit
29ec1d0092
|
@ -10,7 +10,7 @@ import debug from '../utils/debug.js';
|
|||
|
||||
@injectable()
|
||||
export default class FileCacheProvider {
|
||||
private readonly evictionQueue = new PQueue({concurrency: 1});
|
||||
private static readonly evictionQueue = new PQueue({concurrency: 1});
|
||||
private readonly config: Config;
|
||||
|
||||
constructor(@inject(TYPES.Config) config: Config) {
|
||||
|
@ -87,9 +87,9 @@ export default class FileCacheProvider {
|
|||
}
|
||||
|
||||
private async evictOldestIfNecessary() {
|
||||
void this.evictionQueue.add(this.evictOldest.bind(this));
|
||||
void FileCacheProvider.evictionQueue.add(this.evictOldest.bind(this));
|
||||
|
||||
return this.evictionQueue.onEmpty();
|
||||
return FileCacheProvider.evictionQueue.onEmpty();
|
||||
}
|
||||
|
||||
private async evictOldest() {
|
||||
|
|
Loading…
Reference in a new issue