Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Aug 10, 2024
1 parent 331ce4a commit fabc568
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 11 deletions.
12 changes: 6 additions & 6 deletions bindings/arkbuilders/core/drop/drop_core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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()) {
Expand Down Expand Up @@ -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<PathBuf>): BlobTicket

Expand Down Expand Up @@ -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`),
)
Expand Down
5 changes: 5 additions & 0 deletions src-tauri/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src-tauri/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src-tauri/.idea/src-tauri.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src-tauri/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))?;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/transfers/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
>
<Button
on:click={() => {
goto(`/transfers/recieve`);
goto(`/transfers/receive`);
}}
class="w-32"
>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/transfers/recieve/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
qrScanner = new QrScanner(
videoSource,
(result) => {
goto('/transfers/recieve/confirm?hash=' + result.data);
goto('/transfers/receive/confirm?hash=' + result.data);
},
{
highlightCodeOutline: true,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/transfers/send/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</button>
<button
on:click={() => {
goto('/transfers/recieve');
goto('/transfers/receive');
}}
class="flex flex-row items-center gap-2"
>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/transfers/transferring/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
onMount(async () => {
let start = Date.now();
output = await invoke('recieve_files', {
output = await invoke('receive_files', {
ticket: data.ticket
});
time_complete = Date.now() - start;
Expand Down

0 comments on commit fabc568

Please sign in to comment.