Skip to content

Commit

Permalink
Cleanup to be more golang-like (googleforgames#17)
Browse files Browse the repository at this point in the history
* make const names more golang-like
  • Loading branch information
shin5ok authored Jan 17, 2023
1 parent 441ffd0 commit 277b61e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions director/director.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import (
)

const (
OM_API_HOST = "open-match-backend.open-match.svc.cluster.local:50505"
MMF_API_HOST = "mmf.default.svc.cluster.local"
MMF_API_PORT = 50502
omApiHost = "open-match-backend.open-match.svc.cluster.local:50505"
mmfApiHost = "mmf.default.svc.cluster.local"
mmfApiPort = 50502
)

type Client struct {
Expand Down Expand Up @@ -66,7 +66,7 @@ func main() {
}

func createOMBackendClient() (pb.BackendServiceClient, func() error) {
conn, err := grpc.Dial(OM_API_HOST, grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.Dial(omApiHost, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
panic(err)
}
Expand All @@ -90,8 +90,8 @@ func createOMFetchMatchesRequest() *pb.FetchMatchesRequest {
return &pb.FetchMatchesRequest{
// om-function:50502 -> the internal hostname & port number of the MMF service in our Kubernetes cluster
Config: &pb.FunctionConfig{
Host: MMF_API_HOST,
Port: MMF_API_PORT,
Host: mmfApiHost,
Port: mmfApiPort,
Type: pb.FunctionConfig_GRPC,
},
Profile: &pb.MatchProfile{
Expand Down

0 comments on commit 277b61e

Please # to comment.