@@ -296,7 +296,7 @@ pub fn worker_complete_nexus_task(
296296 . complete_nexus_task ( nexus_completion)
297297 . await
298298 . map_err ( |err| match err {
299- CompleteNexusError :: NexusNotEnabled { } => {
299+ CompleteNexusError :: NexusNotEnabled => {
300300 BridgeError :: UnexpectedError ( format ! ( "{err}" ) )
301301 }
302302 CompleteNexusError :: MalformedNexusCompletion { reason } => BridgeError :: TypeError {
@@ -309,7 +309,7 @@ pub fn worker_complete_nexus_task(
309309
310310/// Request shutdown of the worker.
311311/// Once complete Core will stop polling on new tasks and activations on worker's task queue.
312- /// Caller should drain any pending tasks and activations and call worker_finalize_shutdown before breaking from
312+ /// Caller should drain any pending tasks and activations and call ` worker_finalize_shutdown` before breaking from
313313/// the loop to ensure graceful shutdown.
314314#[ js_function]
315315pub fn worker_initiate_shutdown ( worker : OpaqueInboundHandle < Worker > ) -> BridgeResult < ( ) > {
@@ -817,7 +817,6 @@ mod custom_slot_supplier {
817817 Err ( err) => {
818818 warn ! ( "Error reserving slot: {err:?}" ) ;
819819 tokio:: time:: sleep ( std:: time:: Duration :: from_millis ( 1000 ) ) . await ;
820- continue ;
821820 }
822821 }
823822 }
@@ -941,18 +940,18 @@ mod custom_slot_supplier {
941940 fn from ( info : & ' a CoreSlotInfo < ' a > ) -> Self {
942941 match info {
943942 CoreSlotInfo :: Workflow ( info) => Self :: Workflow {
944- workflow_type : info. workflow_type . to_string ( ) ,
943+ workflow_type : info. workflow_type . clone ( ) ,
945944 is_sticky : info. is_sticky ,
946945 } ,
947946 CoreSlotInfo :: Activity ( info) => Self :: Activity {
948- activity_type : info. activity_type . to_string ( ) ,
947+ activity_type : info. activity_type . clone ( ) ,
949948 } ,
950949 CoreSlotInfo :: LocalActivity ( info) => Self :: LocalActivity {
951- activity_type : info. activity_type . to_string ( ) ,
950+ activity_type : info. activity_type . clone ( ) ,
952951 } ,
953952 CoreSlotInfo :: Nexus ( info) => Self :: Nexus {
954- service : info. service . to_string ( ) ,
955- operation : info. operation . to_string ( ) ,
953+ service : info. service . clone ( ) ,
954+ operation : info. operation . clone ( ) ,
956955 } ,
957956 }
958957 }
0 commit comments