summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-11-28 21:51:42 -0500
committersiddharth <s@ricketyspace.net>2021-11-28 21:51:42 -0500
commitb1478c8b4f54aa4ff9f35ffcc3671a8fcd581d35 (patch)
treec58a98d0ce93bd318da6aaeb63f72cdf6d204132
parentacc280fbbdee818c94b12cc4382266dbb734e8b5 (diff)
state: add ProcessState.DB
-rw-r--r--state/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/state/state.go b/state/state.go
index 4bfbf39..9547673 100644
--- a/state/state.go
+++ b/state/state.go
@@ -3,6 +3,8 @@
package state
+import "ricketyspace.net/fern/db"
+
// Contains the result of processing a Feed.
type FeedResult struct {
FeedId string // Feed's identifier
@@ -20,6 +22,7 @@ type EntryResult struct {
type ProcessState struct {
YDLPath string
DumpDir string
+ DB *db.FernDB
// Channel for Feed.Process goroutines to communicate to the
// caller about the number of entries that are being
// downloaded for a feed.