Remove components, do downloaded ids ; support dumps
This commit is contained in:
@@ -93,6 +93,7 @@ func MainApp(configPath string) {
|
||||
defer workerPool.Release()
|
||||
|
||||
utils.EnsureDirExists("data") // Ensure the data directory exists
|
||||
utils.EnsureDirExists("dump") // dump is a new directory for "torrent" files
|
||||
torrentMgr := torrent.NewTorrentManager(
|
||||
config,
|
||||
api,
|
||||
@@ -113,6 +114,7 @@ func MainApp(configPath string) {
|
||||
log.Named("router"),
|
||||
)
|
||||
|
||||
//// pprof
|
||||
// go func() {
|
||||
// if err := netHttp.ListenAndServe(":6060", nil); err != nil && err != netHttp.ErrServerClosed {
|
||||
// zurglog.Errorf("Failed to start pprof: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user