summaryrefslogtreecommitdiff
path: root/internal/schedule
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-10 22:01:27 +0200
committerPaul Buetow <paul@buetow.org>2024-12-10 22:01:27 +0200
commita5529938536f7a530f0c55e5a82b16a4c80af5b4 (patch)
tree8c76b7190872174bc9dea434f8c3af758d0ffa28 /internal/schedule
parentc0e0e1ff4905af70a4f113eb9c2e0d94f18b2436 (diff)
fix
Diffstat (limited to 'internal/schedule')
-rw-r--r--internal/schedule/schedule.go2
-rw-r--r--internal/schedule/stats.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/schedule/schedule.go b/internal/schedule/schedule.go
index 9b31f88..2985da2 100644
--- a/internal/schedule/schedule.go
+++ b/internal/schedule/schedule.go
@@ -77,7 +77,7 @@ func selectRandomEntry(dir, tag string) (entry.Entry, error) {
}
en, err := entry.New(filepath.Join(dir, file.Name()))
if err != nil {
- colour.Infoln(err)
+ _, _ = colour.Infoln(err)
return entry.Zero, false
}
return en, en.State == entry.Queued
diff --git a/internal/schedule/stats.go b/internal/schedule/stats.go
index 42f9332..b4f8153 100644
--- a/internal/schedule/stats.go
+++ b/internal/schedule/stats.go
@@ -81,11 +81,11 @@ func (s stats) targetHit(pauseDays, maxQueuedDays int) bool {
pauseDays--
}
if s.postsPerDay >= s.postsPerDayTarget {
- colour.Infoln("Posts per day target hit")
+ _, _ = colour.Infoln("Posts per day target hit")
return true
}
if s.lastPostDaysAgo <= float64(pauseDays) {
- colour.Infoln("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet")
+ _, _ = colour.Infoln("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet")
return true
}