Skip to content

Commit

Permalink
registering deployment (old) wfs worker component always for feature …
Browse files Browse the repository at this point in the history
…enabled ns
  • Loading branch information
Shivs11 committed Jan 20, 2025
1 parent 9be3dda commit a2f6bca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/worker/deployment/fx.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import (
type (
workerComponent struct {
activityDeps activityDeps
enabledForNs dynamicconfig.BoolPropertyFnWithNamespaceFilter
}

activityDeps struct {
Expand Down Expand Up @@ -93,14 +92,13 @@ func NewResult(
return fxResult{
Component: &workerComponent{
activityDeps: params,
enabledForNs: dynamicconfig.EnableDeployments.Get(dc),
},
}
}

func (s *workerComponent) DedicatedWorkerOptions(ns *namespace.Namespace) *workercommon.PerNSDedicatedWorkerOptions {
return &workercommon.PerNSDedicatedWorkerOptions{
Enabled: s.enabledForNs(ns.Name().String()),
Enabled: true,
}
}

Expand Down

0 comments on commit a2f6bca

Please sign in to comment.