fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-25 18:30:02 +02:00
parent 2a562056ba
commit 329aeb2bdc

View File

@ -4,7 +4,7 @@ export class LogTailAccount {
private token: string;
private timedAggregator = new plugins.lik.TimedAggregtor<plugins.smartlogInterfaces.ILogPackage<{[key: string]: any}>>({
aggregationIntervalInMillis: 2000,
aggregationIntervalInMillis: 200,
functionForAggregation: async (logPackagesArg) => {
const requestBody = [];
let lastTimestamp: number = 0;
@ -31,7 +31,7 @@ export class LogTailAccount {
'Authorization': `Bearer ${this.token}`
},
requestBody,
keepAlive: true,
keepAlive: false,
});
}
});