Skip to content

Commit

Permalink
Items plugin: Add timeout for getSchemes (#608, #621)
Browse files Browse the repository at this point in the history
Forgot this change after switching to items plugin.
  • Loading branch information
stefandesu committed Nov 16, 2021
1 parent 75b4bb9 commit 35f867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function modifyItemByUri(uri, path, value) {
export const schemes = reactive([])
// TODO: Adjust to load one registry after another without blocking
export async function loadSchemes() {
for (const scheme of await cdk.getSchemes()) {
for (const scheme of await cdk.getSchemes({ timeout: 10000 })) {
saveItem(scheme, { type: "scheme" })
if (!schemes.find(s => jskos.compare(s, scheme))) {
schemes.push({ uri: scheme.uri, identifier: scheme.identifier })
Expand Down

0 comments on commit 35f867a

Please sign in to comment.