From 1f17a7151e10e22b9d9ac8cea491426bcd2373dc Mon Sep 17 00:00:00 2001 From: Xiang Dai Date: Wed, 27 May 2020 10:54:24 +0800 Subject: [PATCH] feedback Signed-off-by: Xiang Dai --- pkg/scheduler/actions/allocate/allocate.go | 4 +--- pkg/scheduler/actions/backfill/backfill.go | 4 +--- pkg/scheduler/actions/enqueue/enqueue.go | 4 +--- pkg/scheduler/actions/preempt/preempt.go | 4 +--- pkg/scheduler/actions/reclaim/reclaim.go | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/pkg/scheduler/actions/allocate/allocate.go b/pkg/scheduler/actions/allocate/allocate.go index 191ed6b25bc..d6e0432044b 100644 --- a/pkg/scheduler/actions/allocate/allocate.go +++ b/pkg/scheduler/actions/allocate/allocate.go @@ -25,9 +25,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - _ *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/backfill/backfill.go b/pkg/scheduler/actions/backfill/backfill.go index 44f6981bce3..c4cf4738bfa 100644 --- a/pkg/scheduler/actions/backfill/backfill.go +++ b/pkg/scheduler/actions/backfill/backfill.go @@ -24,9 +24,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/framework" ) -type Action struct { - _ *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/enqueue/enqueue.go b/pkg/scheduler/actions/enqueue/enqueue.go index 910c1f3ce98..1c8f0bdccdc 100644 --- a/pkg/scheduler/actions/enqueue/enqueue.go +++ b/pkg/scheduler/actions/enqueue/enqueue.go @@ -37,9 +37,7 @@ var ( defaultOverCommitFactor = 1.2 ) -type Action struct { - _ *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/preempt/preempt.go b/pkg/scheduler/actions/preempt/preempt.go index a46f1d5cb9c..b8ae9bc4c8e 100644 --- a/pkg/scheduler/actions/preempt/preempt.go +++ b/pkg/scheduler/actions/preempt/preempt.go @@ -26,9 +26,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - _ *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/reclaim/reclaim.go b/pkg/scheduler/actions/reclaim/reclaim.go index 3fb3fe67cd8..a9680cbfbad 100644 --- a/pkg/scheduler/actions/reclaim/reclaim.go +++ b/pkg/scheduler/actions/reclaim/reclaim.go @@ -25,9 +25,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - _ *framework.Session -} +type Action struct{} func New() *Action { return &Action{}