File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
app/src/main/java/to/bitkit/repositories Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ import kotlinx.coroutines.flow.update
3333import kotlinx.coroutines.isActive
3434import kotlinx.coroutines.launch
3535import kotlinx.coroutines.withContext
36- import kotlinx.coroutines.withTimeout
3736import org.lightningdevkit.ldknode.ChannelDetails
3837import to.bitkit.async.ServiceQueue
3938import to.bitkit.data.CacheStore
@@ -53,7 +52,6 @@ import javax.inject.Named
5352import javax.inject.Singleton
5453import kotlin.math.ceil
5554import kotlin.time.Duration
56- import kotlin.time.Duration.Companion.minutes
5755import kotlin.time.Duration.Companion.seconds
5856
5957@Singleton
@@ -284,11 +282,6 @@ class BlocktankRepo @Inject constructor(
284282 suspend fun openChannel (orderId : String ): Result <IBtOrder > = withContext(bgDispatcher) {
285283 try {
286284 Logger .debug(" Opening channel for order: '$orderId '" , context = TAG )
287-
288- withTimeout(1 .minutes) {
289- lightningRepo.lightningState.first { it.nodeStatus?.isRunning ? : false }
290- }
291-
292285 val order = coreService.blocktank.open(orderId)
293286
294287 // Update the order in state
You can’t perform that action at this time.
0 commit comments