startGRPC runs the gRPC server until ctx is cancelled. Delegates the TCP listen + graceful-stop dance to grpcsrv.Server.Run; this wrapper exists only to keep all listener startup colocated in server.Run.
(ctx context.Context, addr string)
| 152 | // listen + graceful-stop dance to grpcsrv.Server.Run; this wrapper exists |
| 153 | // only to keep all listener startup colocated in server.Run. |
| 154 | func (s *server) startGRPC(ctx context.Context, addr string) error { |
| 155 | // grpcsrv.Server was constructed with its own addr; honour that. |
| 156 | // (When we add CLI-driven addr override, this is the place.) |
| 157 | _ = addr |
| 158 | return s.Dependencies.GRPCServer.Run(ctx) |
| 159 | } |