From b58ffdbdd6d4bbdf36392f9d5dfbb36b4c5068a6 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Fri, 2 Feb 2018 17:07:23 -0500 Subject: [PATCH] formatted code --- schedulers/base.go | 4 ++-- utilities/schedUtils/schedUtils.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schedulers/base.go b/schedulers/base.go index 3602f71..222a071 100644 --- a/schedulers/base.go +++ b/schedulers/base.go @@ -60,13 +60,13 @@ type BaseScheduler struct { // Size of window of tasks that can be scheduled in the next offer cycle. // The window size can be adjusted to make the most use of every resource offer. // By default, the schedulingWindow would correspond to all the remaining tasks that haven't yet been scheduled. - schedulingWindow int + schedulingWindow int // Strategy to resize the schedulingWindow. schedWindowResStrategy schedUtils.SchedWindowResizingStrategy // Window of tasks that the current scheduling policy has to schedule. // Once #schedWindow tasks are scheduled, the current scheduling policy has to stop scheduling. - curSchedWindow int + curSchedWindow int } func (s *BaseScheduler) init(opts ...schedPolicyOption) { diff --git a/utilities/schedUtils/schedUtils.go b/utilities/schedUtils/schedUtils.go index 496c4f7..ba70b85 100644 --- a/utilities/schedUtils/schedUtils.go +++ b/utilities/schedUtils/schedUtils.go @@ -21,7 +21,7 @@ type SchedWindowResizingStrategy interface { // Scheduling window resizing strategy that attempts to resize the scheduling window // to include as many tasks as possible so as to make the most use of the next offer cycle. -type fillNextOfferCycle struct {} +type fillNextOfferCycle struct{} func (s *fillNextOfferCycle) Apply(getArgs func() interface{}) int { return s.apply(getArgs().([]def.Task))