fix(basic.gblib): Databases. #392 @othonlima.

This commit is contained in:
Rodrigo Rodriguez 2023-11-30 22:31:45 -03:00
parent 2e458fd896
commit 4d8b6da2a0

View file

@ -81,9 +81,9 @@ export class GBServer {
setFlagsFromString('--expose_gc'); setFlagsFromString('--expose_gc');
const runGC = () { const runGC = () => {
setTimeout(function() { setTimeout(() => {
// Do something here // Do something here
GBLog.info('Running GC...'); GBLog.info('Running GC...');
@ -91,7 +91,7 @@ export class GBServer {
const gc = runInNewContext('gc'); // nocommit const gc = runInNewContext('gc'); // nocommit
gc(); gc();
runGC(); runGC();
}, 5* 60 *1000); }, 5 * 60 * 1000);
} }
@ -121,8 +121,8 @@ export class GBServer {
GBServer.globals.indexSemaphore = new Mutex(); GBServer.globals.indexSemaphore = new Mutex();
server.use(bodyParser.json()); server.use(bodyParser.json());
server.use(bodyParser.json({limit: '100mb'})); server.use(bodyParser.json({ limit: '100mb' }));
server.use(bodyParser.urlencoded({limit: '100mb', extended: true})); server.use(bodyParser.urlencoded({ limit: '100mb', extended: true }));
// Setups global error handlers. // Setups global error handlers.