From c7c79eb496c39516d42757ae88b8063a409bb380 Mon Sep 17 00:00:00 2001 From: yukang Date: Wed, 25 Dec 2024 16:47:34 +0800 Subject: [PATCH] comments feedback for function naming --- src/fiber/channel.rs | 4 ++-- src/fiber/tests/test_utils.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fiber/channel.rs b/src/fiber/channel.rs index 6a703249c..93c679194 100644 --- a/src/fiber/channel.rs +++ b/src/fiber/channel.rs @@ -443,7 +443,7 @@ where if need_commitment_signed { self.handle_commitment_signed_command(state)?; } - self.flush_tlc_operations(myself, state).await; + self.update_tlc_status_on_ack(myself, state).await; Ok(()) } FiberChannelMessage::ChannelReady(_channel_ready) => { @@ -710,7 +710,7 @@ where } } - async fn flush_tlc_operations( + async fn update_tlc_status_on_ack( &self, myself: &ActorRef, state: &mut ChannelActorState, diff --git a/src/fiber/tests/test_utils.rs b/src/fiber/tests/test_utils.rs index 0e45f7695..e012e98ac 100644 --- a/src/fiber/tests/test_utils.rs +++ b/src/fiber/tests/test_utils.rs @@ -162,7 +162,6 @@ pub fn mock_ecdsa_signature() -> EcdsaSignature { pub fn generate_store() -> Store { let temp_dir = TempDir::new("test-fnn-node"); - eprintln!("Store directory: {:?}", temp_dir.as_ref()); let store = Store::new(temp_dir.as_ref()); store.expect("create store") }