From 50abced3abe29d94779d11f186778eab65a2ff28 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Sat, 14 Sep 2024 02:09:15 +0900 Subject: [PATCH] Rename a constant --- flutter_package/bin/src/message.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flutter_package/bin/src/message.dart b/flutter_package/bin/src/message.dart index 8bcd6d93..f37053c6 100644 --- a/flutter_package/bin/src/message.dart +++ b/flutter_package/bin/src/message.dart @@ -246,7 +246,6 @@ Future generateMessageCode({ } final resourceNames = entry.value; for (final resourceName in resourceNames) { - print(resourceName); exportsDartLines.add("export './$subPath$resourceName.pb.dart';"); } } @@ -311,11 +310,11 @@ use std::sync::LazyLock; await insertTextToFile( rustPath, ''' -type ${messageName}Store = LazyLock<( +type ${messageName}Channel = LazyLock<( SignalSender>, SignalReceiver>, )>; -pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Store = +pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Channel = LazyLock::new(signal_channel); impl ${normalizePascal(messageName)} {