Skip to content

Commit

Permalink
Consolidate Module and DefaultOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSnowden committed Oct 18, 2023
1 parent b1f5d5e commit de3f2ea
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions common/resource/fx.go
Expand Up @@ -126,11 +126,7 @@ var Module = fx.Options(
fx.Provide(PersistenceConfigProvider),
fx.Provide(health.NewServer),
deadlock.Module,
config.Module,
)

var DefaultOptions = fx.Options(
ringpop.Module,
config.Module, ringpop.Module,
fx.Provide(RPCFactoryProvider),
fx.Provide(ArchivalMetadataProvider),
fx.Provide(ArchiverProviderProvider),
Expand Down
1 change: 0 additions & 1 deletion service/frontend/fx.go
Expand Up @@ -71,7 +71,6 @@ import (
type FEReplicatorNamespaceReplicationQueue persistence.NamespaceReplicationQueue

var Module = fx.Options(
resource.Module,
fx.Provide(dynamicconfig.NewCollection),
fx.Provide(ConfigProvider),
fx.Provide(NamespaceLogInterceptorProvider),
Expand Down
1 change: 0 additions & 1 deletion service/history/fx.go
Expand Up @@ -61,7 +61,6 @@ import (
)

var Module = fx.Options(
resource.Module,
workflow.Module,
shard.Module,
cache.Module,
Expand Down
1 change: 0 additions & 1 deletion service/matching/fx.go
Expand Up @@ -49,7 +49,6 @@ import (
)

var Module = fx.Options(
resource.Module,
fx.Provide(dynamicconfig.NewCollection),
fx.Provide(ConfigProvider),
fx.Provide(PersistenceRateLimitingParamsProvider),
Expand Down
1 change: 0 additions & 1 deletion service/worker/fx.go
Expand Up @@ -52,7 +52,6 @@ import (
var Module = fx.Options(
migration.Module,
addsearchattributes.Module,
resource.Module,
deletenamespace.Module,
scheduler.Module,
batcher.Module,
Expand Down
2 changes: 1 addition & 1 deletion temporal/fx.go
Expand Up @@ -428,7 +428,7 @@ func (params ServiceProviderParamsCommon) GetCommonServiceOptions(serviceName pr
},
),
ServiceTracingModule,
resource.DefaultOptions,
resource.Module,
FxLogAdapter,
)
}
Expand Down

0 comments on commit de3f2ea

Please sign in to comment.