Remove cloud profiler

This commit is contained in:
Peter Stuifzand 2018-08-26 18:50:00 +02:00
parent 52bc16436e
commit 67c27a6139
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -26,7 +26,6 @@ import (
"regexp"
"time"
"cloud.google.com/go/profiler"
"github.com/gomodule/redigo/redis"
"p83.nl/go/ekster/pkg/microsub"
@ -60,17 +59,6 @@ func newPool(addr string) *redis.Pool {
}
func main() {
if os.Getenv("GOOGLE_APPLICATION_CREDENTIALS") != "" {
if err := profiler.Start(profiler.Config{
Service: "microsub-server",
ServiceVersion: "1.0",
ProjectID: "microsub-server", // optional on GCP
}); err != nil {
log.Fatalf("Cannot start the profiler: %v", err)
}
}
log.Println("eksterd - microsub server")
flag.Parse()