Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions engine/packages/pegboard/src/workflows/actor/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ async fn allocate_actor_v2(
.map(|pool| matches!(pool.config.kind, RunnerConfigKind::Serverless { .. }))
.unwrap_or(false);

// Protocol version is set or this is a serverless pool; migrate to actor v2
if pool.as_ref().and_then(|p| p.protocol_version).is_some() || for_serverless {
// Protocol version is set or this is a serverless pool
if pool.and_then(|p| p.protocol_version).is_some() {
return Ok(AllocateActorOutputV2 {
status: AllocateActorStatus::MigrateToV2,
serverless: false,
Expand Down
Loading