Skip to content

Commit

Permalink
Remove internal-frontend from default services
Browse files Browse the repository at this point in the history
  • Loading branch information
dnr committed Jan 26, 2023
1 parent 5652dc4 commit 0feeb0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func buildCLI() *cli.App {
&cli.StringSliceFlag{
Name: "service",
Aliases: []string{"svc"},
Value: cli.NewStringSlice(temporal.Services...),
Value: cli.NewStringSlice(temporal.DefaultServices...),
Usage: "service(s) to start",
},
},
Expand Down
13 changes: 11 additions & 2 deletions temporal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,25 @@ 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),
string(primitives.HistoryService),
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.
Expand Down

0 comments on commit 0feeb0a

Please sign in to comment.