Skip to content

Commit e7987d6

Browse files
committed
fix: ci
1 parent 62335dc commit e7987d6

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

.github/workflows/pre-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
VERSION=${{ steps.get_version.outputs.version }}
5656
git config --local user.email "github-actions[bot]@users.noreply.github.com"
5757
git config --local user.name "github-actions[bot]"
58-
git add Package.swift README.md
58+
git add Package.swift README.md Sources/*
5959
git commit -m "chore: update version to ${VERSION}"
6060
git tag -a "${VERSION}" -m "Release version ${VERSION}"
6161
git push origin HEAD:main

Sources/Loro/LoroFFI.swift

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ public func FfiConverterTypeDiffBatch_lower(_ value: DiffBatch) -> UnsafeMutable
17231723

17241724
public protocol EphemeralStoreProtocol : AnyObject {
17251725

1726-
func apply(data: Data)
1726+
func apply(data: Data) throws
17271727

17281728
func delete(key: String)
17291729

@@ -1805,7 +1805,7 @@ public convenience init(timeout: Int64) {
18051805

18061806

18071807

1808-
open func apply(data: Data) {try! rustCall() {
1808+
open func apply(data: Data)throws {try rustCallWithError(FfiConverterTypeLoroError.lift) {
18091809
uniffi_loro_ffi_fn_method_ephemeralstore_apply(self.uniffiClonePointer(),
18101810
FfiConverterData.lower(data),$0
18111811
)
@@ -3690,11 +3690,6 @@ public protocol LoroDocProtocol : AnyObject {
36903690
*/
36913691
func lenOps() -> UInt64
36923692

3693-
/**
3694-
* Estimate the size of the document states in memory.
3695-
*/
3696-
func logEstimateSize()
3697-
36983693
/**
36993694
* Minimize the frontiers by removing the unnecessary entries.
37003695
*/
@@ -4741,15 +4736,6 @@ open func lenOps() -> UInt64 {
47414736
uniffi_loro_ffi_fn_method_lorodoc_len_ops(self.uniffiClonePointer(),$0
47424737
)
47434738
})
4744-
}
4745-
4746-
/**
4747-
* Estimate the size of the document states in memory.
4748-
*/
4749-
open func logEstimateSize() {try! rustCall() {
4750-
uniffi_loro_ffi_fn_method_lorodoc_log_estimate_size(self.uniffiClonePointer(),$0
4751-
)
4752-
}
47534739
}
47544740

47554741
/**
@@ -16301,7 +16287,7 @@ private var initializationResult: InitializationResult = {
1630116287
if (uniffi_loro_ffi_checksum_method_diffbatch_push() != 17472) {
1630216288
return InitializationResult.apiChecksumMismatch
1630316289
}
16304-
if (uniffi_loro_ffi_checksum_method_ephemeralstore_apply() != 28698) {
16290+
if (uniffi_loro_ffi_checksum_method_ephemeralstore_apply() != 1107) {
1630516291
return InitializationResult.apiChecksumMismatch
1630616292
}
1630716293
if (uniffi_loro_ffi_checksum_method_ephemeralstore_delete() != 9629) {
@@ -16562,9 +16548,6 @@ private var initializationResult: InitializationResult = {
1656216548
if (uniffi_loro_ffi_checksum_method_lorodoc_len_ops() != 1966) {
1656316549
return InitializationResult.apiChecksumMismatch
1656416550
}
16565-
if (uniffi_loro_ffi_checksum_method_lorodoc_log_estimate_size() != 14588) {
16566-
return InitializationResult.apiChecksumMismatch
16567-
}
1656816551
if (uniffi_loro_ffi_checksum_method_lorodoc_minimize_frontiers() != 47301) {
1656916552
return InitializationResult.apiChecksumMismatch
1657016553
}

0 commit comments

Comments
 (0)