Skip to content

Commit 7af1944

Browse files
committed
Format fix
1 parent 695c40f commit 7af1944

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

libs/asr-providers/aws.js

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,30 +128,29 @@ module.exports = class AWSAsrProvider extends AbstractASRProvider{
128128
const webhook = netutils.publicAddressPath("/commit", req, token);
129129

130130
const setupCmd = this.getConfig("nodeSetupCmd");
131-
if (setupCmd != null && setupCmd.length > 0)
132-
{
131+
if (setupCmd != null && setupCmd.length > 0){
133132
await dm.ssh(setupCmd);
134133
}
135134

136135
let dockerRunArgs = [`sudo docker run -d -p 3000:3000`];
137136

138-
if(dataDirMountPath.length > 0){
139-
dockerRunArgs.push(`--mount type=bind,source=${dataDirMountPath},target=/var/www/data`);
140-
}
141-
if (this.getConfig("dockerGpu")){
142-
dockerRunArgs.push(`--gpus all`);
143-
}
144-
145-
dockerRunArgs.push(`${dockerImage} -q 1`);
146-
dockerRunArgs.push(`--s3_access_key ${accessKey}`);
147-
dockerRunArgs.push(`--s3_secret_key ${secretKey}`);
148-
dockerRunArgs.push(`--s3_endpoint ${s3.endpoint}`);
149-
dockerRunArgs.push(`--s3_bucket ${s3.bucket}`);
150-
dockerRunArgs.push(`--s3_acl ${s3.acl}`);
151-
dockerRunArgs.push(`--webhook ${webhook}`);
152-
dockerRunArgs.push(`--token ${nodeToken}`);
153-
154-
await dm.ssh(dockerRunArgs.join(" "));
137+
if(dataDirMountPath.length > 0){
138+
dockerRunArgs.push(`--mount type=bind,source=${dataDirMountPath},target=/var/www/data`);
139+
}
140+
if (this.getConfig("dockerGpu")){
141+
dockerRunArgs.push(`--gpus all`);
142+
}
143+
144+
dockerRunArgs.push(`${dockerImage} -q 1`);
145+
dockerRunArgs.push(`--s3_access_key ${accessKey}`);
146+
dockerRunArgs.push(`--s3_secret_key ${secretKey}`);
147+
dockerRunArgs.push(`--s3_endpoint ${s3.endpoint}`);
148+
dockerRunArgs.push(`--s3_bucket ${s3.bucket}`);
149+
dockerRunArgs.push(`--s3_acl ${s3.acl}`);
150+
dockerRunArgs.push(`--webhook ${webhook}`);
151+
dockerRunArgs.push(`--token ${nodeToken}`);
152+
153+
await dm.ssh(dockerRunArgs.join(" "));
155154
}
156155

157156
getImagePropertiesFor(imagesCount){

0 commit comments

Comments
 (0)