Skip to content

Commit

Permalink
mcs: solve forward stream error
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 6, 2023
1 parent 689fcbe commit 07f806d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/grpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2632,7 +2632,10 @@ func (s *GrpcServer) getGlobalTSOFromTSOServer(ctx context.Context) (pdpb.Timest
if err != nil {
return pdpb.Timestamp{}, err
}
forwardStream.Send(request)
err := forwardStream.Send(request)
if err != nil {
return pdpb.Timestamp{}, err
}
ts, err = forwardStream.Recv()
if err != nil {
if strings.Contains(err.Error(), errs.NotLeaderErr) {
Expand Down

0 comments on commit 07f806d

Please sign in to comment.