Skip to content

Commit 273c7f7

Browse files
committed
Updated min heartbeat and idle settings intervals
1 parent e3ff11d commit 273c7f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/configuration/Configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export class Configuration implements IConfigurationSettings {
250250

251251
if (value <= 0) {
252252
value = -1;
253-
} else if (value > 0 && value < 15000) {
254-
value = 15000;
253+
} else if (value > 0 && value < 120000) {
254+
value = 120000;
255255
}
256256

257257
this._updateSettingsWhenIdleInterval = value;

src/plugins/default/HeartbeatPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class HeartbeatPlugin implements IEventPlugin {
1010
private _intervalId: any;
1111

1212
constructor(heartbeatInterval: number = 30000) {
13-
this._interval = heartbeatInterval;
13+
this._interval = heartbeatInterval >= 30000 ? heartbeatInterval : 60000;
1414
}
1515

1616
public run(context: EventPluginContext, next?: () => void): void {

0 commit comments

Comments
 (0)