diff --git a/cmd/spider/main.go b/cmd/spider/main.go index 6fc33a3..6a8c1ad 100644 --- a/cmd/spider/main.go +++ b/cmd/spider/main.go @@ -55,7 +55,10 @@ func lc(lifecycle fx.Lifecycle, spiderVideo *spider.Video, spiderUpdate *spider. lifecycle.Append(fx.Hook{ OnStart: func(ctx context.Context) error { - return checkServer.Run(ctx) + go func() { + _ = checkServer.Run(ctx) + }() + return nil }, OnStop: func(ctx context.Context) error { if err := checkServer.Stop(ctx); err != nil {