Merge pull request #324 from Contextualist/fix-pr317-reg

Fix two regressions introduced by PR #317
This commit is contained in:
Maksym Pavlenko
2022-06-14 19:31:26 -07:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -155,6 +155,10 @@ func main() {
return
}
// Queue of feeds to update
updates := make(chan *feed.Config, 16)
defer close(updates)
group, ctx := errgroup.WithContext(ctx)
defer func() {
if err := group.Wait(); err != nil && (err != context.Canceled && err != http.ErrServerClosed) {
@@ -163,10 +167,6 @@ func main() {
log.Info("gracefully stopped")
}()
// Queue of feeds to update
updates := make(chan *feed.Config, 16)
defer close(updates)
// Create Cron
c := cron.New(cron.WithChain(cron.SkipIfStillRunning(cron.DiscardLogger)))
m := make(map[string]cron.EntryID)
+1 -1
View File
@@ -13,7 +13,7 @@ import (
// LocalConfig is the storage configuration for local file system
type LocalConfig struct {
DataDir string `yaml:"data_dir"`
DataDir string `toml:"data_dir"`
}
// Local implements local file storage