Skip to content

Commit d9d64a3

Browse files
committed
Fix comments
1 parent 7100e22 commit d9d64a3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

boskos/common/mason_config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ func ItemToResourcesConfig(i Item) (ResourcesConfig, error) {
6969

7070
// Copy returns a copy of the TypeToResources
7171
func (t TypeToResources) Copy() TypeToResources {
72-
new := TypeToResources{}
72+
n := TypeToResources{}
7373
for k, v := range t {
74-
new[k] = v
74+
n[k] = v
7575
}
76-
return new
76+
return n
7777
}

boskos/mason/mason.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ func ValidateConfig(configs []common.ResourcesConfig, resources []common.Resourc
157157
}
158158

159159
// NewMason creates and initialized a new Mason object
160-
// In: rtypes - A list of resource types to act on
161-
// channelSize - Size for all the channel
162-
// cleanerCount - Number of cleaning threads
163-
// client - boskos client
164-
// boskosWaitPeriod - time to wait before a retry
160+
// In: rtypes - A list of resource types to act on
161+
// cleanerCount - Number of cleaning threads
162+
// client - boskos client
163+
// waitPeriod - time to wait before a new boskos operation (acquire mostly)
164+
// syncPeriod - time to wait before syncing resource information to boskos
165165
// Out: A Pointer to a Mason Object
166166
func NewMason(cleanerCount int, client boskosClient, waitPeriod, syncPeriod time.Duration) *Mason {
167167
return &Mason{

0 commit comments

Comments
 (0)