File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/java/to/bitkit/data/backup Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -29,27 +29,28 @@ class VssBackupClient @Inject constructor(
2929 suspend fun setup () = withContext(bgDispatcher) {
3030 try {
3131 withTimeout(30 .seconds) {
32+ val vssServerUrl = Env .vssServerUrl
3233 Logger .verbose(" VSS client setting up…" , context = TAG )
3334 if (Env .lnurlAuthSeverUrl.isNotEmpty()) {
3435 val mnemonic = keychain.loadString(Keychain .Key .BIP39_MNEMONIC .name)
3536 ? : throw ServiceError .MnemonicNotFound
3637 val passphrase = keychain.loadString(Keychain .Key .BIP39_PASSPHRASE .name)
3738
3839 vssNewClientWithLnurlAuth(
39- baseUrl = Env . vssServerUrl,
40+ baseUrl = vssServerUrl,
4041 storeId = vssStoreIdProvider.getVssStoreId(),
4142 mnemonic = mnemonic,
4243 passphrase = passphrase,
4344 lnurlAuthServerUrl = Env .lnurlAuthSeverUrl,
4445 )
4546 } else {
4647 vssNewClient(
47- baseUrl = Env . vssServerUrl,
48+ baseUrl = vssServerUrl,
4849 storeId = vssStoreIdProvider.getVssStoreId(),
4950 )
5051 }
5152 isSetup.complete(Unit )
52- Logger .info(" VSS client setup ok " , context = TAG )
53+ Logger .info(" VSS client setup with server: ' $vssServerUrl ' " , context = TAG )
5354 }
5455 } catch (e: Throwable ) {
5556 isSetup.completeExceptionally(e)
You can’t perform that action at this time.
0 commit comments