Skip to content

Commit

Permalink
change env and var names
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfzc committed Aug 5, 2022
1 parent 0ceed2a commit bc5f609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cover/instrument.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ func registerHandlers() {
}
func registerSelf(address string) ([]byte, error) {
baymaxId, ok := os.LookupEnv("BAYMAX_APP_ID")
customServiceName, ok := os.LookupEnv("GOC_SERVICE_NAME")
var selfName string
if ok {
selfName = baymaxId
selfName = customServiceName
} else {
selfName = filepath.Base(os.Args[0])
}
Expand Down

0 comments on commit bc5f609

Please sign in to comment.