mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 00:04:02 +03:00
Update to go 1.19
This commit is contained in:
+2
-2
@@ -28,11 +28,11 @@ func Init(ctx context.Context) error {
|
||||
Handler: mux,
|
||||
}
|
||||
|
||||
go srv.Serve(listener) // nolint: errcheck
|
||||
go srv.Serve(listener) //nolint: errcheck
|
||||
|
||||
go func() {
|
||||
<-ctx.Done()
|
||||
srv.Shutdown(context.Background()) // nolint: errcheck, contextcheck
|
||||
srv.Shutdown(context.Background()) //nolint: errcheck
|
||||
}()
|
||||
|
||||
Stats = multiStats(stats)
|
||||
|
||||
Reference in New Issue
Block a user