Skip to content

Commit da2c55c

Browse files
committed
Fix bug in route service causing drivers to arrive slower
1 parent fa6b137 commit da2c55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/route/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (s *Server) FindRoute(ctx context.Context, req *FindRouteRequest) (*FindRou
7777
delay.Sleep(config.GetRouteCalcDelay(), config.GetRouteCalcStdDev())
7878

7979
// Generate a random number between 3 and 45 with decimals
80-
eta := time.Duration((rand.Float64()*(45-3) + 3) * float64(time.Minute))
80+
eta := time.Duration((rand.Float64()*(45-3) + 3) * float64(time.Second))
8181
if os.Getenv("FAST_ROUTE") != "" {
8282
eta = time.Second
8383
}

0 commit comments

Comments
 (0)