daemon/cluster/executor/container: fix mixed pointer/value receiver

Got a linter warning on this one, and I don't think eventFilter() was
intentionally using a value (not pointer).

> Struct containerConfig has methods on both value and pointer receivers.
> Such usage is not recommended by the Go Documentation

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-04 00:04:24 +02:00
parent 8ea78b34ab
commit 8846c7e0ae
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -720,7 +720,7 @@ func (c *containerConfig) applyPrivileges(hc *enginecontainer.HostConfig) {
}
}
func (c containerConfig) eventFilter() filters.Args {
func (c *containerConfig) eventFilter() filters.Args {
return filters.NewArgs(
filters.Arg("type", events.ContainerEventType),
filters.Arg("name", c.name()),