Rename a bunch of "Make" functions to "New"
Also rename some to other names that make better reading. There are still a bunch of "make" functions but they do things like assemble a string from parts or build an array of things. It seemed that "make" there seemed fine. "New" is for "constructors".
This commit is contained in:
@@ -29,7 +29,7 @@ type RandomScheduler struct {
|
||||
randomLock sync.Mutex
|
||||
}
|
||||
|
||||
func MakeRandomScheduler(random *rand.Rand) Scheduler {
|
||||
func NewRandomScheduler(random *rand.Rand) Scheduler {
|
||||
return &RandomScheduler{
|
||||
random: random,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user