Skip to content

Commit f38d073

Browse files
qiutongsbobbypage
authored andcommitted
fix lint errors
1 parent 1008f22 commit f38d073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

container/containerd/handler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
type fsUsageProvider struct {
3636
ctx context.Context
37-
containerId string
37+
containerID string
3838
client ContainerdClient
3939
}
4040

@@ -168,7 +168,7 @@ func newContainerdContainerHandler(
168168
handler.fsHandler = common.NewFsHandler(common.DefaultPeriod, &fsUsageProvider{
169169
ctx: ctx,
170170
client: client,
171-
containerId: id,
171+
containerID: id,
172172
})
173173
}
174174

@@ -308,7 +308,7 @@ func (h *containerdContainerHandler) GetContainerIPAddress() string {
308308
}
309309

310310
func (f *fsUsageProvider) Usage() (*common.FsUsage, error) {
311-
stats, err := f.client.ContainerStats(f.ctx, f.containerId)
311+
stats, err := f.client.ContainerStats(f.ctx, f.containerID)
312312
if err != nil {
313313
return nil, err
314314
}
@@ -320,5 +320,5 @@ func (f *fsUsageProvider) Usage() (*common.FsUsage, error) {
320320
}
321321

322322
func (f *fsUsageProvider) Targets() []string {
323-
return []string{f.containerId}
323+
return []string{f.containerID}
324324
}

0 commit comments

Comments
 (0)