shippingservice: prevent crash on profiler init
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
71c47b0869
commit
0a1054c75d
2 changed files with 6 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue