Skip to content

Commit ddc23d0

Browse files
committed
chore: remove delay injected to help testing
1 parent 4572088 commit ddc23d0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/main/kotlin/com/coder/toolbox/cli/downloader/CoderDownloadService.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.coder.toolbox.util.getHeaders
88
import com.coder.toolbox.util.getOS
99
import com.coder.toolbox.util.sha1
1010
import kotlinx.coroutines.Dispatchers
11-
import kotlinx.coroutines.delay
1211
import kotlinx.coroutines.withContext
1312
import okhttp3.ResponseBody
1413
import retrofit2.Response
@@ -25,7 +24,6 @@ import java.nio.file.StandardOpenOption
2524
import java.util.zip.GZIPInputStream
2625
import kotlin.io.path.name
2726
import kotlin.io.path.notExists
28-
import kotlin.time.Duration.Companion.seconds
2927

3028
private val SUPPORTED_BIN_MIME_TYPES = listOf(
3129
"application/octet-stream",
@@ -75,7 +73,6 @@ class CoderDownloadService(
7573
}
7674
context.logger.info("Downloading binary to temporary $cliTempDst")
7775
response.saveToDisk(cliTempDst, showTextProgress, buildVersion)?.makeExecutable()
78-
delay(10.seconds)
7976
DownloadResult.Downloaded(remoteBinaryURL, cliTempDst)
8077
}
8178

0 commit comments

Comments
 (0)