Skip to content

Commit

Permalink
also receive region
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed Sep 18, 2018
1 parent 687e750 commit 21e2d22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,13 @@ func Documentation(getPtrNames bool) (map[string]interface{}, error) {
// port into metadata
func AddGRPCInfoToMetadata(
metadata map[string]string,
host, externalHost, port string,
region, host, externalHost, port string,
) map[string]string {
// TODO: should I get all this information here? Or just
// receive them as argument
metadata[constants.GRPCHostKey] = host
metadata[constants.GRPCExternalHostKey] = externalHost
metadata[constants.GRPCPortKey] = port
metadata[constants.RegionKey] = region
return metadata
}

0 comments on commit 21e2d22

Please sign in to comment.