Skip to content

Commit

Permalink
Alias checker disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKorba committed Dec 12, 2024
1 parent f499898 commit fb38ac8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions Sources/ZcashLightClientKit/Synchronizer/SDKSynchronizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb38ac8

Please sign in to comment.