Merge branch 'dev' into Alpha

This commit is contained in:
Skyxim
2022-06-26 21:53:03 +08:00
9 changed files with 119 additions and 71 deletions

View File

@ -64,7 +64,7 @@ func getGroupDelay(w http.ResponseWriter, r *http.Request) {
return
}
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*time.Duration(timeout))
ctx, cancel := context.WithTimeout(r.Context(), time.Millisecond*time.Duration(timeout))
defer cancel()
dm, err := group.URLTest(ctx, url)