Skip to content

Commit

Permalink
Update packages/apputils-extension/src/settingconnector.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Mar 25, 2020
1 parent bff4749 commit 35a1b7e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/apputils-extension/src/settingconnector.ts
Expand Up @@ -31,12 +31,7 @@ export class SettingConnector extends DataConnector<
fetch(id: string): Promise<ISettingRegistry.IPlugin | undefined> {
const throttlers = this._throttlers;
if (!(id in throttlers)) {
throttlers[id] = new Throttler(async () => {
const fetched = await this._connector.fetch(id);
throttlers[id].dispose();
delete throttlers[id];
return fetched;
}, 100);
throttlers[id] = new Throttler(() => this._connector.fetch(id), 100);
}
return throttlers[id].invoke();
}
Expand Down

0 comments on commit 35a1b7e

Please sign in to comment.