Skip to content

Commit 34b6d2a

Browse files
committed
try to fix CI
1 parent 36272c6 commit 34b6d2a

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

pkg/profiling/continuous/checker/network_response_time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewNetworkAvgResponseTimeChecker() *NetworkHTTPAvgResponseTimeChecker {
3535
return &NetworkHTTPAvgResponseTimeChecker{}
3636
}
3737

38-
func (n *NetworkHTTPAvgResponseTimeChecker) Init(config *base.ContinuousConfig) error {
38+
func (n *NetworkHTTPAvgResponseTimeChecker) Init(*base.ContinuousConfig) error {
3939
n.HTTPBasedChecker = common.NewHTTPBasedChecker(
4040
base.CheckTypeHTTPAvgResponseTime, func(val string) (float64, error) {
4141
return strconv.ParseFloat(val, 64)

pkg/profiling/continuous/checker/process_cpu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewProcessCPUChecker() *ProcessCPUChecker {
3535
return &ProcessCPUChecker{}
3636
}
3737

38-
func (r *ProcessCPUChecker) Init(config *base.ContinuousConfig) error {
38+
func (r *ProcessCPUChecker) Init(*base.ContinuousConfig) error {
3939
r.ProcessBasedChecker = common.NewProcessBasedChecker(base.CheckTypeProcessCPU, func(val string) (float64, error) {
4040
threshold, err := strconv.ParseInt(val, 10, 32)
4141
if err != nil {

pkg/profiling/continuous/checker/process_thread.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewProcessThreadCountChecker() *ProcessThreadCountChecker {
3535
return &ProcessThreadCountChecker{}
3636
}
3737

38-
func (t *ProcessThreadCountChecker) Init(config *base.ContinuousConfig) error {
38+
func (t *ProcessThreadCountChecker) Init(*base.ContinuousConfig) error {
3939
t.ProcessBasedChecker = common.NewProcessBasedChecker(base.CheckTypeProcessThreadCount, func(val string) (int32, error) {
4040
count, err := strconv.ParseInt(val, 10, 32)
4141
return int32(count), err

pkg/profiling/continuous/trigger/oncpu.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *OnCPUTrigger) Init(_ *module.Manager, conf *base.ContinuousConfig) erro
3838
c.BaseTrigger = NewSingleProcessBaseTrigger(conf,
3939
func(task *taskBase.ProfilingTask, _ []api.ProcessInterface, _ []base.ThresholdCause) {
4040
task.TargetType = taskBase.TargetTypeOnCPU
41-
}, func(report *v3.ContinuousProfilingReport, processes []api.ProcessInterface, thresholds []base.ThresholdCause) {
41+
}, func(report *v3.ContinuousProfilingReport, _ []api.ProcessInterface, _ []base.ThresholdCause) {
4242
report.TargetTask = &v3.ContinuousProfilingReport_OnCPU{
4343
OnCPU: &v3.ContinuousOnCPUProfilingTask{},
4444
}

pkg/profiling/task/network/analyze/layer4/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (l *Listener) GenerateMetrics() base.ConnectionMetrics {
6565
return NewLayer4Metrics()
6666
}
6767

68-
func (l *Listener) RegisterBPFEvents(ctx context.Context, bpfLoader *bpf.Loader) {
68+
func (l *Listener) RegisterBPFEvents(_ context.Context, bpfLoader *bpf.Loader) {
6969
bpfLoader.ReadEventAsync(bpfLoader.SocketExceptionOperationEventQueue, l.handleSocketExceptionOperationEvent, func() interface{} {
7070
return &SocketExceptionOperationEvent{}
7171
})

pkg/profiling/task/network/analyze/layer7/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (l *Listener) RegisterBPFEvents(ctx context.Context, bpfLoader *bpf.Loader)
9494
l.startSocketData(ctx, bpfLoader)
9595
}
9696

97-
func (l *Listener) ReceiveNewConnection(ctx *base.ConnectionContext, event *events.SocketConnectEvent) {
97+
func (l *Listener) ReceiveNewConnection(*base.ConnectionContext, *events.SocketConnectEvent) {
9898
}
9999

100100
func (l *Listener) ReceiveCloseConnection(ctx *base.ConnectionContext, event *events.SocketCloseEvent) {

pkg/profiling/task/offcpu/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (r *Runner) Init(_ *base.ProfilingTask, processes []api.ProcessInterface) e
9494
return nil
9595
}
9696

97-
func (r *Runner) Run(ctx context.Context, notify base.ProfilingRunningSuccessNotify) error {
97+
func (r *Runner) Run(_ context.Context, notify base.ProfilingRunningSuccessNotify) error {
9898
objs := bpfObjects{}
9999
spec, err := loadBpf()
100100
if err != nil {

0 commit comments

Comments
 (0)