Merge pull request #4692 from kolyshkin/golangci-v2

ci: switch to golangci-lint v2
This commit is contained in:
Sebastiaan van Stijn
2025-03-31 16:31:28 +02:00
committed by GitHub
12 changed files with 48 additions and 30 deletions
+4 -4
View File
@@ -104,11 +104,11 @@ func (s *notifySocket) waitForContainer(container *libcontainer.Container) error
return s.run(state.InitProcessPid)
}
func (n *notifySocket) run(pid1 int) error {
if n.socket == nil {
func (s *notifySocket) run(pid1 int) error {
if s.socket == nil {
return nil
}
notifySocketHostAddr := net.UnixAddr{Name: n.host, Net: "unixgram"}
notifySocketHostAddr := net.UnixAddr{Name: s.host, Net: "unixgram"}
client, err := net.DialUnix("unixgram", nil, &notifySocketHostAddr)
if err != nil {
return err
@@ -121,7 +121,7 @@ func (n *notifySocket) run(pid1 int) error {
go func() {
for {
buf := make([]byte, 4096)
r, err := n.socket.Read(buf)
r, err := s.socket.Read(buf)
if err != nil {
return
}