Add more output

This commit is contained in:
Ryan Cavicchioni 2021-07-11 13:42:45 -05:00
parent 7a30b9a5d3
commit bfcaba33ab
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -28,7 +28,8 @@ func Reverse(s string) string {
}
func (s *server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error) {
log.Printf("Received: %v", req.Data)
log.Printf("Received: %v seq=%d", req.Data, req.Seq)
log.Printf("Sent: %v seq=%d", Reverse(req.Data), req.Seq)
return &pb.PingResponse{Data: Reverse(req.Data), Seq: req.Seq}, nil
}