Skip to content

Remove use of deprecated functions #6782

@dfawley

Description

@dfawley

https://pkg.go.dev/net/http#CloseNotifier

$ grep -r CloseNotifier
internal/transport/handler_server_test.go:				type onlyCloseNotifier interface {
internal/transport/handler_server_test.go:					http.CloseNotifier
internal/transport/handler_server_test.go:				return struct{ onlyCloseNotifier }{w.(onlyCloseNotifier)}

https://pkg.go.dev/crypto/x509#CertPool.Subjects

$ grep -r Roots.Subjects
credentials/tls/certprovider/store_test.go:	if gotR, wantR := got.Roots.Subjects(), want.Roots.Subjects(); !cmp.Equal(gotR, wantR, cmpopts.EquateEmpty()) {
credentials/tls/certprovider/pemfile/watcher_test.go:	if gotR, wantR := got.Roots.Subjects(), want.Roots.Subjects(); !cmp.Equal(gotR, wantR, cmpopts.EquateEmpty()) {

And corresponding ignores of those usages in vet.sh pending PR; should hopefully be submitted relatively soon.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions