Fix tryAddMount usage

This commit is contained in:
Girish Ramakrishnan
2021-06-21 22:37:32 -07:00
parent 3ba2f96d51
commit ceddabd691
4 changed files with 20 additions and 21 deletions

View File

@@ -195,7 +195,7 @@ function restore(backupConfig, backupId, version, sysinfoConfig, options, auditS
mountOptions: backupConfig.mountOptions
};
[error] = await safe(mounts.tryAddMount(newMount, null, { times: 20, interval: 500 })); // 10 seconds
[error] = await safe(mounts.tryAddMount(newMount, { timeout: 10 })); // 10 seconds
if (error) return callback(error);
}