Skip to content

Commit

Permalink
Revert "Remove internal-frontend from default services (#3849)"
Browse files Browse the repository at this point in the history
This reverts commit de6f2df.
  • Loading branch information
MichaelSnowden committed Jan 27, 2023
1 parent fc6efef commit a16244e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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.DefaultServices...),
Value: cli.NewStringSlice(temporal.Services...),
Usage: "service(s) to start",
},
},
Expand Down
13 changes: 2 additions & 11 deletions temporal/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,16 @@ 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 a16244e

Please sign in to comment.