From 3b7f260510a1be38a672deee2c431527014f737e Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 8 Feb 2022 19:26:43 -0800 Subject: [PATCH] Format sources using gofumpt 0.2.1 ... which adds a wee more whitespace fixes. Signed-off-by: Kir Kolyshkin (cherry picked from commit 89733cd055f3094f97479ff8f7d65d759df855ab) Signed-off-by: Kir Kolyshkin --- libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go | 3 +-- libcontainer/process_linux.go | 4 ---- update.go | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go b/libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go index a8fc562d0..d27933582 100644 --- a/libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go +++ b/libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go @@ -153,8 +153,7 @@ func TestDeviceFilter_Privileged(t *testing.T) { Allow: true, }, } - expected := - ` + expected := ` // load parameters into registers 0: LdXMemW dst: r2 src: r1 off: 0 imm: 0 1: And32Imm dst: r2 imm: 65535 diff --git a/libcontainer/process_linux.go b/libcontainer/process_linux.go index e025445d3..446649af8 100644 --- a/libcontainer/process_linux.go +++ b/libcontainer/process_linux.go @@ -39,13 +39,9 @@ type parentProcess interface { // startTime returns the process start time. startTime() (uint64, error) - signal(os.Signal) error - externalDescriptors() []string - setExternalDescriptors(fds []string) - forwardChildLogs() chan error } diff --git a/update.go b/update.go index d02e7af90..9ce5a2e83 100644 --- a/update.go +++ b/update.go @@ -194,7 +194,6 @@ other options are ignored. opt string dest *uint64 }{ - {"cpu-period", r.CPU.Period}, {"cpu-rt-period", r.CPU.RealtimePeriod}, {"cpu-share", r.CPU.Shares}, @@ -211,7 +210,6 @@ other options are ignored. opt string dest *int64 }{ - {"cpu-quota", r.CPU.Quota}, {"cpu-rt-runtime", r.CPU.RealtimeRuntime}, } {