From a16244efded11edf3310a1072ca88dafe02fb725 Mon Sep 17 00:00:00 2001 From: Michael Snowden Date: Fri, 27 Jan 2023 00:44:17 -0800 Subject: [PATCH] Revert "Remove internal-frontend from default services (#3849)" This reverts commit de6f2dfde52bbc7548b3885a9f4506e6b8bd47d8. --- cmd/server/main.go | 2 +- temporal/server.go | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index e8d8154ed2c..a00c04131a0 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -111,7 +111,7 @@ func buildCLI() *cli.App { &cli.StringSliceFlag{ Name: "service", Aliases: []string{"svc"}, - Value: cli.NewStringSlice(temporal.DefaultServices...), + Value: cli.NewStringSlice(temporal.Services...), Usage: "service(s) to start", }, }, diff --git a/temporal/server.go b/temporal/server.go index f7b33e86e44..e745c6751e1 100644 --- a/temporal/server.go +++ b/temporal/server.go @@ -43,9 +43,9 @@ type ( } ) +// Services is the list of all valid temporal services as strings (needs to be strings to keep +// ServerOptions interface stable) var ( - // Services is the set of all valid temporal services as strings (needs to be strings to - // keep ServerOptions interface stable) Services = []string{ string(primitives.FrontendService), string(primitives.InternalFrontendService), @@ -53,15 +53,6 @@ var ( string(primitives.MatchingService), string(primitives.WorkerService), } - - // DefaultServices is the set of services to start by default if services are not given on - // the command line. - DefaultServices = []string{ - string(primitives.FrontendService), - string(primitives.HistoryService), - string(primitives.MatchingService), - string(primitives.WorkerService), - } ) // NewServer returns a new instance of server that serves one or many services.