Skip to content

Commit 5ecfb89

Browse files
authored
chore: revert actor v2 hack (#4586)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes
1 parent 3a5f121 commit 5ecfb89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • engine/packages/pegboard/src/workflows/actor

engine/packages/pegboard/src/workflows/actor/runtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ async fn allocate_actor_v2(
264264
.map(|pool| matches!(pool.config.kind, RunnerConfigKind::Serverless { .. }))
265265
.unwrap_or(false);
266266

267-
// Protocol version is set or this is a serverless pool; migrate to actor v2
268-
if pool.as_ref().and_then(|p| p.protocol_version).is_some() || for_serverless {
267+
// Protocol version is set or this is a serverless pool
268+
if pool.and_then(|p| p.protocol_version).is_some() {
269269
return Ok(AllocateActorOutputV2 {
270270
status: AllocateActorStatus::MigrateToV2,
271271
serverless: false,

0 commit comments

Comments
 (0)