mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 23:06:06 +08:00
移除自动压缩db数据
This commit is contained in:
parent
b7a359714f
commit
35539a4ccc
|
@ -18,7 +18,6 @@ export default class AuthService {
|
||||||
this.authDb.loadDatabase((err) => {
|
this.authDb.loadDatabase((err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
this.authDb.persistence.setAutocompactionInterval(30000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async login(
|
public async login(
|
||||||
|
|
|
@ -23,7 +23,6 @@ export default class CronService {
|
||||||
this.cronDb.loadDatabase((err) => {
|
this.cronDb.loadDatabase((err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
this.cronDb.persistence.setAutocompactionInterval(30000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getDb(): DataStore {
|
public getDb(): DataStore {
|
||||||
|
|
|
@ -14,7 +14,6 @@ export default class EnvService {
|
||||||
this.envDb.loadDatabase((err) => {
|
this.envDb.loadDatabase((err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
this.envDb.persistence.setAutocompactionInterval(30000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async create(payloads: Env[]): Promise<Env[]> {
|
public async create(payloads: Env[]): Promise<Env[]> {
|
||||||
|
|
|
@ -13,7 +13,6 @@ export default class OpenService {
|
||||||
this.appDb.loadDatabase((err) => {
|
this.appDb.loadDatabase((err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
this.appDb.persistence.setAutocompactionInterval(30000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getDb(): DataStore {
|
public getDb(): DataStore {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user