Skip to content

Commit

Permalink
worker: prep for renaming etl to worker
Browse files Browse the repository at this point in the history
Change-Id: I77a7ada9997e40596ae3582ff8d247d79df94a8b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/249819
Reviewed-by: Julie Qiu <julie@golang.org>
  • Loading branch information
jba committed Aug 23, 2020
1 parent 99719cd commit 7427310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func populateExcluded(ctx context.Context, db *postgres.DB) {
}
user := os.Getenv("USER")
if user == "" {
user = "etl"
user = "worker"
}
for _, line := range lines {
var prefix, reason string
Expand Down
6 changes: 3 additions & 3 deletions internal/worker/pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ func (s *Server) doVersionsPage(w http.ResponseWriter, r *http.Request) (err err

func env(serviceID string) string {
switch serviceID {
case "dev-etl":
case "dev-etl", "dev-worker":
return "Dev"
case "staging-etl":
case "staging-etl", "staging-worker":
return "Staging"
case "etl":
case "etl", "worker":
return "Prod"
default:
return "Local"
Expand Down

0 comments on commit 7427310

Please sign in to comment.