Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
linrunqi08 committed Dec 16, 2024
1 parent 0f6c3af commit 98ade31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/helper/docker_center.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ type DockerCenter struct {
// sandbox meta would be saved to its bound container.
containerMap map[string]*DockerInfoDetail // all containers will in this map
client DockerCenterClientInterface
containerHelper *DockerCenterHelperWrapper
containerHelper ContainerHelperInterface
lastErrMu sync.Mutex
lastErr error
lock sync.RWMutex
Expand All @@ -477,14 +477,14 @@ type DockerCenterClientInterface interface {
Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error)
}

type DockerCenterHelperInterface interface {
type ContainerHelperInterface interface {
ContainerProcessAlive(pid int) bool
}

type DockerCenterHelperWrapper struct {
type ContainerHelperWrapper struct {
}

func (r *DockerCenterHelperWrapper) ContainerProcessAlive(pid int) bool {
func (r *ContainerHelperWrapper) ContainerProcessAlive(pid int) bool {
return ContainerProcessAlive(pid)
}

Expand Down Expand Up @@ -653,7 +653,7 @@ func getDockerCenterInstance() *DockerCenter {
// load EnvTags first
LoadEnvTags()
dockerCenterInstance = &DockerCenter{
containerHelper: &DockerCenterHelperWrapper{},
containerHelper: &ContainerHelperWrapper{},
}
dockerCenterInstance.imageCache = make(map[string]string)
dockerCenterInstance.containerMap = make(map[string]*DockerInfoDetail)
Expand Down

0 comments on commit 98ade31

Please sign in to comment.