Skip to content

Commit

Permalink
small style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Sep 27, 2024
1 parent 564a69c commit 8ddaf1e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions lib/db/maintain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ let isDBCreated = false
*/
const upgradeSingle = async (db, key, scripts, storagePolicy, skipUnavailableShards) => {
const _upgradeRequest = (request, useDefaultDB, updateVer) => {
return upgradeRequest({ db, useDefaultDB, updateVer, storage_policy: storagePolicy, skip_unavailable_shards: skipUnavailableShards }, request)
return upgradeRequest({
db,
useDefaultDB,
updateVer,
storage_policy:
storagePolicy,
skip_unavailable_shards: skipUnavailableShards
}, request)
}
if (!isDBCreated) {
isDBCreated = true
Expand All @@ -69,7 +76,13 @@ const upgradeSingle = async (db, key, scripts, storagePolicy, skipUnavailableSha
}

/**
* @param opts {{db: string, useDefaultDB: boolean, updateVer: {key: number, to: number}, storage_policy: string, skip_unavailable_shards: boolean}}
* @param opts {{
* db: string,
* useDefaultDB: boolean,
* updateVer: {key: number, to: number},
* storage_policy: string,
* skip_unavailable_shards: boolean
* }}
* @param request {string} database to update
* @returns {Promise<void>}
*/
Expand Down

0 comments on commit 8ddaf1e

Please sign in to comment.