diff --git a/pkg/runtime/fake.go b/pkg/runtime/fake.go index 3d611ca6..830b1327 100644 --- a/pkg/runtime/fake.go +++ b/pkg/runtime/fake.go @@ -1,7 +1,6 @@ package runtime import ( - "context" "io" "os" "strings" @@ -110,7 +109,7 @@ func NewFakeProfiler() *FakeProfiler { } // Start updates the FakeProfiler to registers it was started -func (p *FakeProfiler) Start(context.Context, profiler.Config) (io.Closer, error) { +func (p *FakeProfiler) Start(profiler.Config) (io.Closer, error) { p.started = true return p, nil } diff --git a/pkg/runtime/profiler/profiler.go b/pkg/runtime/profiler/profiler.go index 41c4a1b2..7fef759f 100644 --- a/pkg/runtime/profiler/profiler.go +++ b/pkg/runtime/profiler/profiler.go @@ -3,7 +3,6 @@ package profiler import ( - "context" "io" ) @@ -18,7 +17,7 @@ type Config struct { // Profiler defines the methods to control execution profiling type Profiler interface { // Start stars the collection of profiling information with the given configuration - Start(ctx context.Context, config Config) (io.Closer, error) + Start(config Config) (io.Closer, error) } // Probe defines the interface for controlling a profiling probe @@ -37,7 +36,7 @@ func NewProfiler() Profiler { } // Start stars the collection of profiling information with the given configuration -func (p *profiler) Start(_ context.Context, config Config) (io.Closer, error) { +func (p *profiler) Start(config Config) (io.Closer, error) { probes, err := buildProbes(config) if err != nil { return nil, err