@@ -5,8 +5,8 @@ use rivet_types::actors::CrashPolicy;
55
66use crate :: { errors, workflows:: runner:: AllocatePendingActorsInput } ;
77
8- mod actor_keys;
98mod destroy;
9+ mod keys;
1010mod runtime;
1111mod setup;
1212
@@ -147,7 +147,7 @@ pub async fn pegboard_actor(ctx: &mut WorkflowCtx, input: &Input) -> Result<()>
147147 . await ?;
148148
149149 if let Some ( key) = & input. key {
150- match actor_keys :: reserve_key (
150+ match keys :: reserve_key (
151151 ctx,
152152 input. namespace_id ,
153153 input. name . clone ( ) ,
@@ -156,8 +156,8 @@ pub async fn pegboard_actor(ctx: &mut WorkflowCtx, input: &Input) -> Result<()>
156156 )
157157 . await ?
158158 {
159- actor_keys :: ReserveKeyOutput :: Success => { }
160- actor_keys :: ReserveKeyOutput :: ForwardToDatacenter { dc_label } => {
159+ keys :: ReserveKeyOutput :: Success => { }
160+ keys :: ReserveKeyOutput :: ForwardToDatacenter { dc_label } => {
161161 ctx. msg ( Failed {
162162 error : errors:: Actor :: KeyReservedInDifferentDatacenter {
163163 datacenter_label : dc_label,
@@ -181,7 +181,7 @@ pub async fn pegboard_actor(ctx: &mut WorkflowCtx, input: &Input) -> Result<()>
181181
182182 return Ok ( ( ) ) ;
183183 }
184- actor_keys :: ReserveKeyOutput :: KeyExists { existing_actor_id } => {
184+ keys :: ReserveKeyOutput :: KeyExists { existing_actor_id } => {
185185 ctx. msg ( Failed {
186186 error : errors:: Actor :: DuplicateKey {
187187 key : key. clone ( ) ,
@@ -696,6 +696,7 @@ pub struct Lost {
696696 /// Immediately reschedules the actor regardless of its crash policy.
697697 pub force_reschedule : bool ,
698698 /// Resets the rescheduling retry count to 0.
699+ #[ serde( default ) ]
699700 pub reset_rescheduling : bool ,
700701}
701702
0 commit comments