commit | bcd6f500b92618e2f7d63733f6f803f9aca68372 | [log] [tgz] |
---|---|---|
author | Arnaud Ferraris <arnaud.ferraris@collabora.corp-partner.google.com> | Mon Dec 02 15:31:11 2024 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Dec 03 21:36:11 2024 |
tree | ae384f1316a598f707995f5e0c4e8591db8572c7 | |
parent | 6a1c8a321ee48d9f911aa681c4a0c71fc60efd3d [diff] |
tremplin: replace use of deprecated modules/functions This change ensures `tremplin` no longer uses deprecated modules and/or functions. Most of the changes relate to `io/ioutil`, deprecated since Go 1.16[1], with equivalent functions/variables being implemented in the `io` and `os` modules. The only other change involves using `grpc.WithContextDialer()` instead of the deprecated `grpc.WithDialer()`[2]. [1] https://pkg.go.dev/io/ioutil [2] https://pkg.go.dev/google.golang.org/grpc#WithDialer BUG=b:218608945 TEST=staticcheck "chromiumos/tremplin/..." Change-Id: I552074e12b619bad4dcb87c5afe62dec5fccb3c6 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/6062823 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com> Reviewed-by: Jordan Abrahams-Whitehead <ajordanr@google.com>