Skip to content

Commit 880c6b4

Browse files
cleanup Crud extensions
1 parent 9e9ae46 commit 880c6b4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Sources/PowerSync/Protocol/db/CrudBatch.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ public protocol CrudBatch {
1616

1717
public extension CrudBatch {
1818
/// Call to remove the changes from the local queue, once successfully uploaded.
19-
///
20-
/// `writeCheckpoint` is optional.
21-
func complete(writeCheckpoint: String? = nil) async throws {
19+
func complete() async throws {
2220
try await self.complete(
23-
writeCheckpoint: writeCheckpoint
21+
writeCheckpoint: nil
2422
)
2523
}
2624
}

Sources/PowerSync/Protocol/db/CrudTransaction.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ public protocol CrudTransaction {
1818

1919
public extension CrudTransaction {
2020
/// Call to remove the changes from the local queue, once successfully uploaded.
21-
///
22-
/// `writeCheckpoint` is optional.
23-
func complete(writeCheckpoint: String? = nil) async throws {
21+
func complete() async throws {
2422
try await self.complete(
25-
writeCheckpoint: writeCheckpoint
23+
writeCheckpoint: nil
2624
)
2725
}
2826
}

0 commit comments

Comments
 (0)