shippingservice: prevent crash on profiler init

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-17 11:56:55 -07:00
parent 71c47b0869
commit 0a1054c75d
2 changed files with 6 additions and 15 deletions

View file

@ -32,15 +32,6 @@ func main() {
}
port = fmt.Sprintf(":%s", port)
if err := profiler.Start(profiler.Config{
Service: "shippingservice",
ServiceVersion: "1.0.0",
// ProjectID must be set if not running on GCP.
// ProjectID: "my-project",
}); err != nil {
log.Fatalf("failed to start profiler: %+v", err)
}
lis, err := net.Listen("tcp", port)
if err != nil {
log.Fatalf("failed to listen: %v", err)