[golang] fix lint warnings
This commit is contained in:
parent
befa188552
commit
e3541e4e7f
4 changed files with 7 additions and 16 deletions
|
@ -59,7 +59,7 @@ func (c *Client) Navigate(s *model.Ship, waypointSymbol string) error {
|
|||
select {
|
||||
case <-c.ctx.Done():
|
||||
return fmt.Errorf("failed: context cancelled")
|
||||
case <-time.After(s.Nav.Route.Arrival.Sub(time.Now())):
|
||||
case <-time.After(time.Until(s.Nav.Route.Arrival)):
|
||||
}
|
||||
s.Nav.Status = "IN_ORBIT"
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue