File tree Expand file tree Collapse file tree
src/main/kotlin/com/coder/toolbox/cli/downloader Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import com.coder.toolbox.util.getHeaders
88import com.coder.toolbox.util.getOS
99import com.coder.toolbox.util.sha1
1010import kotlinx.coroutines.Dispatchers
11- import kotlinx.coroutines.delay
1211import kotlinx.coroutines.withContext
1312import okhttp3.ResponseBody
1413import retrofit2.Response
@@ -25,7 +24,6 @@ import java.nio.file.StandardOpenOption
2524import java.util.zip.GZIPInputStream
2625import kotlin.io.path.name
2726import kotlin.io.path.notExists
28- import kotlin.time.Duration.Companion.seconds
2927
3028private 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
You can’t perform that action at this time.
0 commit comments