cmd/coordinator: embed UnimplementedCoordinatorServer by value

This type is expected to be embedded by value in order to have the
intended effect. Caught by a newer version of generated code which
panics at startup when an unimplemented server type is embedded as
a pointer.

Change-Id: I5074b8b009a5ff6c86695f727b061dffb9c53065
Reviewed-on: https://go-review.googlesource.com/c/build/+/625055
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Dmitri Shuralyov 2024-11-04 12:29:11 -05:00 коммит произвёл Gopher Robot
Родитель 58cbe534e2
Коммит 30ecbc408c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -25,7 +25,7 @@ import (
type gRPCServer struct {
// embed an UnimplementedCoordinatorServer to avoid errors when adding new RPCs to the proto.
*protos.UnimplementedCoordinatorServer
protos.UnimplementedCoordinatorServer
// dashboardURL is the base URL of the Dashboard service (https://build.golang.org)
dashboardURL string