File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ func main() {
155
155
return
156
156
}
157
157
158
+ // Queue of feeds to update
159
+ updates := make (chan * feed.Config , 16 )
160
+ defer close (updates )
161
+
158
162
group , ctx := errgroup .WithContext (ctx )
159
163
defer func () {
160
164
if err := group .Wait (); err != nil && (err != context .Canceled && err != http .ErrServerClosed ) {
@@ -163,10 +167,6 @@ func main() {
163
167
log .Info ("gracefully stopped" )
164
168
}()
165
169
166
- // Queue of feeds to update
167
- updates := make (chan * feed.Config , 16 )
168
- defer close (updates )
169
-
170
170
// Create Cron
171
171
c := cron .New (cron .WithChain (cron .SkipIfStillRunning (cron .DiscardLogger )))
172
172
m := make (map [string ]cron.EntryID )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
14
14
// LocalConfig is the storage configuration for local file system
15
15
type LocalConfig struct {
16
- DataDir string `yaml :"data_dir"`
16
+ DataDir string `toml :"data_dir"`
17
17
}
18
18
19
19
// Local implements local file storage
You can’t perform that action at this time.
0 commit comments