mirror of
https://github.com/rancher/os.git
synced 2025-09-07 09:42:21 +00:00
Bump libcompose and sync dependencies
This commit is contained in:
22
vendor/github.com/docker/containerd/supervisor/oom.go
generated
vendored
22
vendor/github.com/docker/containerd/supervisor/oom.go
generated
vendored
@@ -1,22 +0,0 @@
|
||||
package supervisor
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
type OOMTask struct {
|
||||
baseTask
|
||||
ID string
|
||||
}
|
||||
|
||||
func (s *Supervisor) oom(t *OOMTask) error {
|
||||
logrus.WithField("id", t.ID).Debug("containerd: container oom")
|
||||
s.notifySubscribers(Event{
|
||||
Timestamp: time.Now(),
|
||||
ID: t.ID,
|
||||
Type: StateOOM,
|
||||
})
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user