@@ -1723,7 +1723,7 @@ public func FfiConverterTypeDiffBatch_lower(_ value: DiffBatch) -> UnsafeMutable
1723
1723
1724
1724
public protocol EphemeralStoreProtocol : AnyObject {
1725
1725
1726
- func apply(data: Data)
1726
+ func apply(data: Data) throws
1727
1727
1728
1728
func delete(key: String)
1729
1729
@@ -1805,7 +1805,7 @@ public convenience init(timeout: Int64) {
1805
1805
1806
1806
1807
1807
1808
- open func apply(data: Data) {try! rustCall( ) {
1808
+ open func apply(data: Data)throws {try rustCallWithError(FfiConverterTypeLoroError.lift ) {
1809
1809
uniffi_loro_ffi_fn_method_ephemeralstore_apply(self.uniffiClonePointer(),
1810
1810
FfiConverterData.lower(data),$0
1811
1811
)
@@ -3690,11 +3690,6 @@ public protocol LoroDocProtocol : AnyObject {
3690
3690
*/
3691
3691
func lenOps() -> UInt64
3692
3692
3693
- /**
3694
- * Estimate the size of the document states in memory.
3695
- */
3696
- func logEstimateSize()
3697
-
3698
3693
/**
3699
3694
* Minimize the frontiers by removing the unnecessary entries.
3700
3695
*/
@@ -4741,15 +4736,6 @@ open func lenOps() -> UInt64 {
4741
4736
uniffi_loro_ffi_fn_method_lorodoc_len_ops(self.uniffiClonePointer(),$0
4742
4737
)
4743
4738
})
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
- }
4753
4739
}
4754
4740
4755
4741
/**
@@ -16301,7 +16287,7 @@ private var initializationResult: InitializationResult = {
16301
16287
if (uniffi_loro_ffi_checksum_method_diffbatch_push() != 17472) {
16302
16288
return InitializationResult.apiChecksumMismatch
16303
16289
}
16304
- if (uniffi_loro_ffi_checksum_method_ephemeralstore_apply() != 28698 ) {
16290
+ if (uniffi_loro_ffi_checksum_method_ephemeralstore_apply() != 1107 ) {
16305
16291
return InitializationResult.apiChecksumMismatch
16306
16292
}
16307
16293
if (uniffi_loro_ffi_checksum_method_ephemeralstore_delete() != 9629) {
@@ -16562,9 +16548,6 @@ private var initializationResult: InitializationResult = {
16562
16548
if (uniffi_loro_ffi_checksum_method_lorodoc_len_ops() != 1966) {
16563
16549
return InitializationResult.apiChecksumMismatch
16564
16550
}
16565
- if (uniffi_loro_ffi_checksum_method_lorodoc_log_estimate_size() != 14588) {
16566
- return InitializationResult.apiChecksumMismatch
16567
- }
16568
16551
if (uniffi_loro_ffi_checksum_method_lorodoc_minimize_frontiers() != 47301) {
16569
16552
return InitializationResult.apiChecksumMismatch
16570
16553
}
0 commit comments