Increase feed.pollTimeoutSeconds from 10s to 30s (#483)

* Increase feed.pollTimeoutSeconds from 10s to 30s

* Drop pointless default

* changelog
This commit is contained in:
Will Hunt 2022-11-25 14:46:06 +00:00 committed by GitHub
parent 16c052e5b9
commit 93e2dbe7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

1
changelog.d/483.misc Normal file
View File

@ -0,0 +1 @@
Increase default `feeds.pollTimeoutSeconds` from 10 seconds to 30.

View File

@ -87,7 +87,7 @@ feeds:
#
enabled: false
pollIntervalSeconds: 600
pollTimeoutSeconds: 10
pollTimeoutSeconds: 30
provisioning:
# (Optional) Provisioning API for integration managers
#

View File

@ -251,7 +251,7 @@ export class BridgeConfigFeeds {
this.enabled = yaml.enabled;
this.pollIntervalSeconds = yaml.pollIntervalSeconds;
assert.strictEqual(typeof this.pollIntervalSeconds, "number");
this.pollTimeoutSeconds = yaml.pollTimeoutSeconds ?? 10;
this.pollTimeoutSeconds = yaml.pollTimeoutSeconds ?? 30;
assert.strictEqual(typeof this.pollTimeoutSeconds, "number");
}

View File

@ -111,7 +111,6 @@ export const DefaultConfig = new BridgeConfig({
feeds: {
enabled: false,
pollIntervalSeconds: 600,
pollTimeoutSeconds: 10,
},
provisioning: {
secret: "!secretToken"