File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -976,6 +976,13 @@ impl P2pConnManager {
976976 } => {
977977 tracing:: debug!( %tx, %key, "local subscribe complete" ) ;
978978
979+ // If this is a child operation, complete it and let the parent flow handle result delivery.
980+ if op_manager. is_sub_operation ( tx) {
981+ tracing:: info!( %tx, %key, "completing child subscribe operation" ) ;
982+ op_manager. completed ( tx) ;
983+ continue ;
984+ }
985+
979986 if !op_manager. is_sub_operation ( tx) {
980987 let response = Ok ( HostResponse :: ContractResponse (
981988 ContractResponse :: SubscribeResponse { key, subscribed } ,
Original file line number Diff line number Diff line change @@ -126,9 +126,11 @@ where
126126 "root operation awaiting child completion"
127127 ) ;
128128
129+ // Track the root op so child completions can finish it later.
129130 op_manager
130131 . root_ops_awaiting_sub_ops ( )
131132 . insert ( tx_id, final_state) ;
133+ tracing:: info!( %tx_id, "root operation registered as awaiting sub-ops" ) ;
132134
133135 return Ok ( None ) ;
134136 }
You can’t perform that action at this time.
0 commit comments