From 076d19c7d675b082667d1309e9fa28b64978538b Mon Sep 17 00:00:00 2001 From: siddharth Date: Mon, 29 Nov 2021 17:39:23 -0500 Subject: feed: update Feed.Process Display number of entries yet to be processed. --- feed/feed.go | 6 ++++++ 1 file changed, 6 insertions(+) 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", -- cgit v1.2.3