comatproto "github.com/bluesky-social/indigo/api/atproto"
app.Action = func(cctx *cli.Context) error {
138
-
ctx, cancel := signal.NotifyContext(context.TODO(), syscall.SIGINT, syscall.SIGTERM)
138
+
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
statedburl := cctx.String("state-db-url")
contentdburl := cctx.String("content-db-url")
slog.Info("shutting down")
endctx, cancel := context.WithTimeout(context.TODO(), time.Minute)
166
-
if err := app.Stop(endctx); err != nil {
167
-
slog.Error("error during shutdown", "err", err)
168
+
if err := app.Stop(endctx); err != nil {
169
+
slog.Error("error during shutdown", "err", err)
175
+
if errors.Is(endctx.Err(), context.DeadlineExceeded) {
176
+
slog.Info("timeout exceeded")