File tree Expand file tree Collapse file tree
lib/src/main/kotlin/org/veupathdb/lib/compute/platform/intern/minio Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org.veupathdb.lib.compute.platform.intern.minio
22
33import org.slf4j.LoggerFactory
4- import org.veupathdb.lib.compute.platform.intern.minio.MinIOHax.sleepCountDuration
54
65@Suppress(" NOTHING_TO_INLINE" )
76internal sealed class AbstractMinIOHack {
8- companion object {
9- private const val MaxDeleteAttempts = 5
10- }
11-
127 protected val log = LoggerFactory .getLogger(javaClass)!!
138
149 protected inline fun <T > withRetries (noinline msg : () -> String , noinline fn : () -> T ): T =
1510 context(log) { MinIOHax .withRetries(msg, fn) }
1611
17- protected inline fun <T > withRetries (count : Int , noinline msg : () -> String , noinline fn : () -> T ): T =
18- context(log) { MinIOHax .withRetries(count, msg, fn) }
19-
20- protected inline fun sleep () =
21- context(log) { MinIOHax .sleep() }
22-
2312 protected inline fun delete (
2413 path : String ,
2514 noinline deleteFn : () -> Unit ,
You can’t perform that action at this time.
0 commit comments