Skip to content

Commit

Permalink
lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-prince committed Nov 2, 2024
1 parent 3d44fb9 commit 781a2c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var (
// Cloud profiler.
enableCloudProfiler = flag.Bool("enable-cloud-profiler", false, "Enable cloud profiler")
enableHeap = flag.Bool("heap", false, "enable heap profile collection")
enableCpu = flag.Bool("cpu", true, "enable heap profile collection")
enableCPU = flag.Bool("cpu", true, "enable cpu profile collection")
enableHeapAlloc = flag.Bool("heap_alloc", false, "enable heap allocation profile collection")
enableThread = flag.Bool("thread", false, "enable thread profile collection")
enableContention = flag.Bool("contention", false, "enable contention profile collection")
Expand Down Expand Up @@ -122,9 +122,8 @@ func CreateHTTPClient(ctx context.Context, isHTTP2 bool) (client *storage.Client
Min: time.Second,
TargetPercentile: 0.99,
}))
} else {
return storage.NewClient(ctx, option.WithHTTPClient(httpClient))
}
return storage.NewClient(ctx, option.WithHTTPClient(httpClient))
}

// CreateGrpcClient creates grpc client.
Expand Down Expand Up @@ -200,7 +199,7 @@ func main() {
Service: "custom-go-benchmark",
ServiceVersion: *version,
ProjectID: *projectID,
NoCPUProfiling: !*enableCpu,
NoCPUProfiling: !*enableCPU,
NoHeapProfiling: !*enableHeap,
NoAllocProfiling: !*enableHeapAlloc,
NoGoroutineProfiling: !*enableThread,
Expand Down
2 changes: 1 addition & 1 deletion metrics_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func registerFirstByteLatencyView() {
}

if err := view.Register(v); err != nil {
log.Fatalf("Failed to register the readLatency view: %v", err)
log.Fatalf("Failed to register the firstByteReadLatency view: %v", err)
}
}

Expand Down

0 comments on commit 781a2c6

Please sign in to comment.