Performed a git fmt
This commit is contained in:
parent
10358b418b
commit
abc718b554
3 changed files with 12 additions and 12 deletions
|
@ -1,11 +1,11 @@
|
|||
package offerUtils
|
||||
|
||||
import (
|
||||
"bitbucket.org/sunybingcloud/electron-archive/utilities/offerUtils"
|
||||
"bitbucket.org/sunybingcloud/electron/constants"
|
||||
mesos "github.com/mesos/mesos-go/mesosproto"
|
||||
"strings"
|
||||
"log"
|
||||
"bitbucket.org/sunybingcloud/electron-archive/utilities/offerUtils"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func OfferAgg(offer *mesos.Offer) (float64, float64, float64) {
|
||||
|
@ -81,8 +81,8 @@ func AddHostIfNew(offer *mesos.Offer) {
|
|||
constants.PowerClasses[class] = make(map[string]struct{})
|
||||
}
|
||||
// If the host of this class is not yet present in PowerClasses[class], add it.
|
||||
if _, ok:= constants.PowerClasses[class][host]; !ok {
|
||||
if _, ok := constants.PowerClasses[class][host]; !ok {
|
||||
constants.PowerClasses[class][host] = struct{}{}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue