Add more output
This commit is contained in:
parent
7a30b9a5d3
commit
bfcaba33ab
@ -28,7 +28,8 @@ func Reverse(s string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *server) Ping(ctx context.Context, req *pb.PingRequest) (*pb.PingResponse, error) {
|
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
|
return &pb.PingResponse{Data: Reverse(req.Data), Seq: req.Seq}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user