This commit is contained in:
Christien Rioux 2023-07-25 01:16:09 -04:00
parent 00aad2c728
commit 39baed5555

View File

@ -688,7 +688,7 @@ class VeilidRoutingContextFFI extends VeilidRoutingContext {
_ctx.ensureValid(); _ctx.ensureValid();
final nativeKey = jsonEncode(key).toNativeUtf8(); final nativeKey = jsonEncode(key).toNativeUtf8();
final nativeWriter = final nativeWriter =
writer != null ? jsonEncode(key).toNativeUtf8() : nullptr; writer != null ? jsonEncode(writer).toNativeUtf8() : nullptr;
final recvPort = ReceivePort("routing_context_open_dht_record"); final recvPort = ReceivePort("routing_context_open_dht_record");
final sendPort = recvPort.sendPort; final sendPort = recvPort.sendPort;
_ctx.ffi._routingContextOpenDHTRecord( _ctx.ffi._routingContextOpenDHTRecord(