diff options
author | siddharth <s@ricketyspace.net> | 2021-11-29 17:39:23 -0500 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2021-11-29 17:39:23 -0500 |
commit | 076d19c7d675b082667d1309e9fa28b64978538b (patch) | |
tree | 8a4c599b5194f4a4e799fd8fbbc3e03b2c7ebf66 /feed | |
parent | d81ad6bb36528c4990f06f0498fbc490b7755535 (diff) |
feed: update Feed.Process
Display number of entries yet to be processed.
Diffstat (limited to 'feed')
-rw-r--r-- | feed/feed.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/feed/feed.go b/feed/feed.go index 180a2ac..3cd3828 100644 --- a/feed/feed.go +++ b/feed/feed.go @@ -144,6 +144,12 @@ func (feed *Feed) Process(pState *state.ProcessState) { } // Wait for all entries to finish processing. for processing > 0 { + eTxt := "entries" + if processing == 1 { + eTxt = "entry" + } + fmt.Printf("[%s]: Waiting for %d %s to finish processing\n", + feed.Id, processing, eTxt) er := <-erChan if er.Err == nil { fmt.Printf("[%s][%s]: Downloaded '%s'\n", |