concourse / concourse

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
4 months ago2 years old
limits.CPU.LimitInShares is deprecated: Use Weight instead.
139		memoryResources *specs.LinuxMemory
140		pidLimit        *specs.LinuxPids
141	)
142	shares := limits.CPU.LimitInShares143	if limits.CPU.Weight > 0 {
144		shares = limits.CPU.Weight
145	}
oauth2.NoContext is deprecated: Use context.Background() or context.TODO() instead.
 39		atcEndpoint := rata.NewRequestGenerator(fakeATC.URL(), atc.Routes)
 40
 41		token := &oauth2.Token{TokenType: "Bearer", AccessToken: "yo"}
 42		httpClient := oauth2.NewClient(oauth2.NoContext, oauth2.StaticTokenSource(token)) 43
 44		workerStatus = &tsa.WorkerStatus{
 45			ATCEndpoint:      atcEndpoint,
oauth2.NoContext is deprecated: Use context.Background() or context.TODO() instead.
 39		atcEndpoint := rata.NewRequestGenerator(fakeATC.URL(), atc.Routes)
 40
 41		token := &oauth2.Token{TokenType: "Bearer", AccessToken: "yo"}
 42		httpClient := oauth2.NewClient(oauth2.NoContext, oauth2.StaticTokenSource(token)) 43
 44		sweeper = &tsa.Sweeper{
 45			ATCEndpoint: atcEndpoint,
oauth2.NoContext is deprecated: Use context.Background() or context.TODO() instead.
 35		atcEndpoint := rata.NewRequestGenerator(fakeATC.URL(), atc.Routes)
 36
 37		token := &oauth2.Token{TokenType: "Bearer", AccessToken: "yo"}
 38		httpClient := oauth2.NewClient(oauth2.NoContext, oauth2.StaticTokenSource(token)) 39
 40		retirer = &tsa.Retirer{
 41			ATCEndpoint: atcEndpoint,
oauth2.NoContext is deprecated: Use context.Background() or context.TODO() instead.
 34		atcEndpoint := rata.NewRequestGenerator(fakeATC.URL(), atc.Routes)
 35
 36		token := &oauth2.Token{TokenType: "Bearer", AccessToken: "yo"}
 37		httpClient := oauth2.NewClient(oauth2.NoContext, oauth2.StaticTokenSource(token)) 38
 39		lander = &tsa.Lander{
 40			ATCEndpoint: atcEndpoint,