ソースを参照

Pass context.Background() to server.Shutdown()

DarthSim 6 ヶ月 前
コミット
4706416d5b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -143,7 +143,7 @@ func run(ctx context.Context) error {
 	if err != nil {
 		return err
 	}
-	defer s.Shutdown(ctx)
+	defer s.Shutdown(context.Background())
 
 	<-ctx.Done()