From 6439a1b65cec066c264fe1af5ab6dd92052b60e3 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 17 Sep 2024 18:17:00 -0700 Subject: [PATCH] Set the indexer URL without callback --- build.gradle.kts | 2 +- .../state/v2/supervisor/ConnectionsSupervisor.kt | 11 +---------- v4_abacus.podspec | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7017cf782..d9cf16fe9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.11.9" +version = "1.11.10" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt index 0dca1f0e4..430e78fef 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/ConnectionsSupervisor.kt @@ -171,16 +171,7 @@ internal class ConnectionsSupervisor( } private fun bestEffortConnectIndexer() { - findOptimalIndexer { config -> - this.indexerConfig = config - } - } - - private fun findOptimalIndexer(callback: (config: IndexerURIs?) -> Unit) { - val first = helper.configs.indexerConfigs?.firstOrNull() - helper.ioImplementations.threading?.async(ThreadingType.abacus) { - callback(first) - } + indexerConfig = helper.configs.indexerConfigs?.firstOrNull() } private fun bestEffortConnectChain() { diff --git a/v4_abacus.podspec b/v4_abacus.podspec index c8c35e76f..1e65fa773 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.11.9' + spec.version = '1.11.10' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''