- commit
- 9cd320e
- parent
- e3aa226
- author
- Eric Bower
- date
- 2024-01-16 15:30:29 +0000 UTC
refactor(feeds): cron to run on ssh server
2 files changed,
+4,
-4
+0,
-4
1@@ -56,10 +56,6 @@ func StartApiServer() {
2 logger.Fatal(err)
3 }
4
5- // cron daily digest
6- fetcher := NewFetcher(db, cfg)
7- go fetcher.Loop()
8-
9 staticRoutes := createStaticRoutes()
10
11 if cfg.Debug {
+4,
-0
1@@ -84,6 +84,10 @@ func StartSshServer() {
2 logger.Fatal(err)
3 }
4
5+ // cron daily digest
6+ fetcher := NewFetcher(dbh, cfg)
7+ go fetcher.Loop()
8+
9 handler := filehandlers.NewScpPostHandler(dbh, cfg, hooks, st)
10
11 sshServer := &SSHServer{}