Revert "frontend: use LISTEN_ADDR, refactor Listen code"

This reverts commit 894c0e2a8dbcc76623c7d3ddf589e30e6b9985a9.
This commit is contained in:
Ahmet Alp Balkan 2018-07-16 11:01:58 -07:00
parent ab2b15723c
commit b486251773
2 changed files with 3 additions and 13 deletions

View file

@ -42,8 +42,6 @@ spec:
value: "shippingservice:50051" value: "shippingservice:50051"
- name: CHECKOUT_SERVICE_ADDR - name: CHECKOUT_SERVICE_ADDR
value: "checkoutservice:5050" value: "checkoutservice:5050"
- name: LISTEN_ADDR
value: "0.0.0.0"
resources: resources:
requests: requests:
cpu: 100m cpu: 100m

View file

@ -107,17 +107,9 @@ func main() {
Handler: handler, Handler: handler,
Propagation: &b3.HTTPFormat{}} Propagation: &b3.HTTPFormat{}}
go func() { log.Infof("starting server on " + addr + ":" + srvPort)
log.Infof("starting server on " + addr + ":" + srvPort) go log.Fatal(http.ListenAndServe(addr+":"+secondaryPort, handler))
log.Fatal(http.ListenAndServe(addr+":"+srvPort, handler)) log.Fatal(http.ListenAndServe(addr+":"+srvPort, handler))
}()
go func() {
log.Infof("starting healthcheck server on " + addr + ":" + secondaryPort)
log.Fatal(http.ListenAndServe(addr+":"+secondaryPort, handler))
}()
select {}
} }
func initTracing(log logrus.FieldLogger) { func initTracing(log logrus.FieldLogger) {