mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45:26 +00:00
rename eta proto
This commit is contained in:
@@ -25,7 +25,7 @@ type Google struct {
|
||||
Maps *maps.Client
|
||||
}
|
||||
|
||||
func (r *Google) ETA(ctx context.Context, req *pb.ETARequest, rsp *pb.ETAResponse) error {
|
||||
func (r *Google) Eta(ctx context.Context, req *pb.EtaRequest, rsp *pb.EtaResponse) error {
|
||||
// TODO: implement eta
|
||||
return ErrUnimplemented
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ type OSRM struct {
|
||||
Client *osrm.OSRM
|
||||
}
|
||||
|
||||
func (o *OSRM) ETA(ctx context.Context, req *pb.ETARequest, rsp *pb.ETAResponse) error {
|
||||
func (o *OSRM) Eta(ctx context.Context, req *pb.EtaRequest, rsp *pb.EtaResponse) error {
|
||||
// validate the request
|
||||
if req.Origin == nil {
|
||||
return ErrMissingOrigin
|
||||
|
||||
Reference in New Issue
Block a user