Replace NewTimer().C with After
It is the same thing Signed-off-by: Alexander Morozov <lk4d4math@gmail.com> Upstream-commit: 1a517a4a429d2b4db15383fc9d514fc8db66f8d3 Component: engine
This commit is contained in:
@@ -123,7 +123,7 @@ func (s *systemRouter) getEvents(ctx context.Context, w http.ResponseWriter, r *
|
||||
|
||||
if !onlyPastEvents {
|
||||
dur := until.Sub(now)
|
||||
timeout = time.NewTimer(dur).C
|
||||
timeout = time.After(dur)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user