We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c4aad commit 6e98dbfCopy full SHA for 6e98dbf
src/app/main.go
@@ -35,8 +35,10 @@ func (app *App) Close() {
35
}
36
37
func (app *App) Shutdown() {
38
- ctx, _ := context.WithTimeout(context.Background(), time.Millisecond*100)
+ ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100)
39
app.vhostSvc.Shutdown(ctx)
40
+ cancel()
41
+
42
app.logMan.CloseFiles()
43
44
0 commit comments