Alias checker disconnected

This commit is contained in:
Lukas Korba 2024-12-12 19:20:58 +01:00
parent f499898ff5
commit fb38ac8d9e
2 changed files with 11 additions and 9 deletions

View File

@ -394,10 +394,12 @@ struct ZcashRustBackend: ZcashRustBackendWelding {
defer { zcashlc_free_boxed_slice(pcztPtr) }
return [Data(
bytes: pcztPtr.pointee.ptr,
count: Int(pcztPtr.pointee.len)
)]
return [
Data(
bytes: pcztPtr.pointee.ptr,
count: Int(pcztPtr.pointee.len)
)
]
}
@DBActor

View File

@ -97,7 +97,7 @@ public class SDKSynchronizer: Synchronizer {
}
deinit {
UsedAliasesChecker.stopUsing(alias: initializer.alias, id: initializer.id)
//UsedAliasesChecker.stopUsing(alias: initializer.alias, id: initializer.id)
Task { [blockProcessor] in
await blockProcessor.stop()
}
@ -120,9 +120,9 @@ public class SDKSynchronizer: Synchronizer {
return initialisationError
}
if !UsedAliasesChecker.tryToUse(alias: initializer.alias, id: initializer.id) {
return .initializerAliasAlreadyInUse(initializer.alias)
}
// if !UsedAliasesChecker.tryToUse(alias: initializer.alias, id: initializer.id) {
// return .initializerAliasAlreadyInUse(initializer.alias)
// }
return nil
}
@ -606,7 +606,7 @@ public class SDKSynchronizer: Synchronizer {
return
}
UsedAliasesChecker.stopUsing(alias: initializer.alias, id: initializer.id)
// UsedAliasesChecker.stopUsing(alias: initializer.alias, id: initializer.id)
let context = AfterSyncHooksManager.WipeContext(
prewipe: { [weak self] in