Skip to content

Commit a212d9b

Browse files
committed
Fix build
1 parent 3da18d5 commit a212d9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

trainings/handlers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
type Handlers struct {
2020
config config.Config
2121

22-
grpcClient genproto.ServerClient
22+
grpcClient genproto.TrainingsClient
2323
}
2424

2525
func NewHandlers() *Handlers {
@@ -30,13 +30,13 @@ func NewHandlers() *Handlers {
3030
}
3131
}
3232

33-
func (h *Handlers) newGrpcClient(ctx context.Context) genproto.ServerClient {
33+
func (h *Handlers) newGrpcClient(ctx context.Context) genproto.TrainingsClient {
3434
globalConfig := h.config.GlobalConfig()
3535

3636
return h.newGrpcClientWithAddr(ctx, globalConfig.ServerAddr, globalConfig.Insecure)
3737
}
3838

39-
func (h *Handlers) newGrpcClientWithAddr(ctx context.Context, addr string, insecure bool) genproto.ServerClient {
39+
func (h *Handlers) newGrpcClientWithAddr(ctx context.Context, addr string, insecure bool) genproto.TrainingsClient {
4040
if addr == "" {
4141
addr = internal.DefaultTrainingsServer
4242
}
@@ -67,7 +67,7 @@ func (h *Handlers) newGrpcClientWithAddr(ctx context.Context, addr string, insec
6767
panic(err)
6868
}
6969

70-
h.grpcClient = genproto.NewServerClient(conn)
70+
h.grpcClient = genproto.NewTrainingsClient(conn)
7171
}
7272

7373
return h.grpcClient

0 commit comments

Comments
 (0)