Skip to content

Commit de6f2df

Browse files
authored
Remove internal-frontend from default services (#3849)
1 parent 25015d4 commit de6f2df

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

cmd/server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func buildCLI() *cli.App {
111111
&cli.StringSliceFlag{
112112
Name: "service",
113113
Aliases: []string{"svc"},
114-
Value: cli.NewStringSlice(temporal.Services...),
114+
Value: cli.NewStringSlice(temporal.DefaultServices...),
115115
Usage: "service(s) to start",
116116
},
117117
},

temporal/server.go

+11-2
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,25 @@ type (
4343
}
4444
)
4545

46-
// Services is the list of all valid temporal services as strings (needs to be strings to keep
47-
// ServerOptions interface stable)
4846
var (
47+
// Services is the set of all valid temporal services as strings (needs to be strings to
48+
// keep ServerOptions interface stable)
4949
Services = []string{
5050
string(primitives.FrontendService),
5151
string(primitives.InternalFrontendService),
5252
string(primitives.HistoryService),
5353
string(primitives.MatchingService),
5454
string(primitives.WorkerService),
5555
}
56+
57+
// DefaultServices is the set of services to start by default if services are not given on
58+
// the command line.
59+
DefaultServices = []string{
60+
string(primitives.FrontendService),
61+
string(primitives.HistoryService),
62+
string(primitives.MatchingService),
63+
string(primitives.WorkerService),
64+
}
5665
)
5766

5867
// NewServer returns a new instance of server that serves one or many services.

0 commit comments

Comments
 (0)