From fabc568afccf3f06865a686a22a7bda941ff9acb Mon Sep 17 00:00:00 2001 From: Kirill Taran Date: Sat, 10 Aug 2024 15:17:30 +0900 Subject: [PATCH] Typo fix --- bindings/arkbuilders/core/drop/drop_core.kt | 12 ++++++------ src-tauri/.idea/.gitignore | 5 +++++ src-tauri/.idea/modules.xml | 8 ++++++++ src-tauri/.idea/src-tauri.iml | 10 ++++++++++ src-tauri/.idea/vcs.xml | 6 ++++++ src-tauri/src/main.rs | 2 +- src/routes/transfers/+page.svelte | 2 +- src/routes/transfers/recieve/+page.svelte | 2 +- src/routes/transfers/send/+page.svelte | 2 +- src/routes/transfers/transferring/+page.svelte | 2 +- 10 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 src-tauri/.idea/.gitignore create mode 100644 src-tauri/.idea/modules.xml create mode 100644 src-tauri/.idea/src-tauri.iml create mode 100644 src-tauri/.idea/vcs.xml diff --git a/bindings/arkbuilders/core/drop/drop_core.kt b/bindings/arkbuilders/core/drop/drop_core.kt index 1830d0b..bf99b6c 100644 --- a/bindings/arkbuilders/core/drop/drop_core.kt +++ b/bindings/arkbuilders/core/drop/drop_core.kt @@ -749,7 +749,7 @@ internal interface UniffiLib : Library { ): Long fun uniffi_drop_core_fn_method_irohinstance_get_node(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus, ): Pointer - fun uniffi_drop_core_fn_method_irohinstance_recieve_files(`ptr`: Pointer,`ticket`: RustBuffer.ByValue,`handleChunk`: Pointer, + fun uniffi_drop_core_fn_method_irohinstance_receive_files(`ptr`: Pointer,`ticket`: RustBuffer.ByValue,`handleChunk`: Pointer, ): Long fun uniffi_drop_core_fn_method_irohinstance_send_files(`ptr`: Pointer,`files`: RustBuffer.ByValue, ): Long @@ -871,7 +871,7 @@ internal interface UniffiLib : Library { ): Unit fun uniffi_drop_core_checksum_method_irohinstance_get_node( ): Short - fun uniffi_drop_core_checksum_method_irohinstance_recieve_files( + fun uniffi_drop_core_checksum_method_irohinstance_receive_files( ): Short fun uniffi_drop_core_checksum_method_irohinstance_send_files( ): Short @@ -897,7 +897,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) { if (lib.uniffi_drop_core_checksum_method_irohinstance_get_node() != 32150.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } - if (lib.uniffi_drop_core_checksum_method_irohinstance_recieve_files() != 48969.toShort()) { + if (lib.uniffi_drop_core_checksum_method_irohinstance_receive_files() != 48969.toShort()) { throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project") } if (lib.uniffi_drop_core_checksum_method_irohinstance_send_files() != 33734.toShort()) { @@ -1658,7 +1658,7 @@ public interface IrohInstanceInterface { fun `getNode`(): IrohNode - suspend fun `recieveFiles`(`ticket`: kotlin.String, `handleChunk`: FileTransferHandle): DropCollection + suspend fun `receiveFiles`(`ticket`: kotlin.String, `handleChunk`: FileTransferHandle): DropCollection suspend fun `sendFiles`(`files`: List): BlobTicket @@ -1762,10 +1762,10 @@ open class IrohInstance: Disposable, AutoCloseable, IrohInstanceInterface { @Throws(IrohException::class) @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") - override suspend fun `recieveFiles`(`ticket`: kotlin.String, `handleChunk`: FileTransferHandle) : DropCollection { + override suspend fun `receiveFiles`(`ticket`: kotlin.String, `handleChunk`: FileTransferHandle) : DropCollection { return uniffiRustCallAsync( callWithPointer { thisPtr -> - UniffiLib.INSTANCE.uniffi_drop_core_fn_method_irohinstance_recieve_files( + UniffiLib.INSTANCE.uniffi_drop_core_fn_method_irohinstance_receive_files( thisPtr, FfiConverterString.lower(`ticket`),FfiConverterTypeFileTransferHandle.lower(`handleChunk`), ) diff --git a/src-tauri/.idea/.gitignore b/src-tauri/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/src-tauri/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/src-tauri/.idea/modules.xml b/src-tauri/.idea/modules.xml new file mode 100644 index 0000000..4f536e1 --- /dev/null +++ b/src-tauri/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src-tauri/.idea/src-tauri.iml b/src-tauri/.idea/src-tauri.iml new file mode 100644 index 0000000..54bc4f7 --- /dev/null +++ b/src-tauri/.idea/src-tauri.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src-tauri/.idea/vcs.xml b/src-tauri/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/src-tauri/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index acea52f..f2f20b6 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -134,7 +134,7 @@ async fn receive_files( let files = state .iroh - .recieve_files(ticket, Arc::new(FileTransferHandle(tx))) + .receive_files(ticket, Arc::new(FileTransferHandle(tx))) .await .map_err(|e| InvokeError::from_anyhow(anyhow!(e)))?; diff --git a/src/routes/transfers/+page.svelte b/src/routes/transfers/+page.svelte index 774e79a..7d4800b 100644 --- a/src/routes/transfers/+page.svelte +++ b/src/routes/transfers/+page.svelte @@ -65,7 +65,7 @@ >