tidy + lint

This commit is contained in:
tsmethurst 2021-06-13 18:41:42 +02:00
commit f1eb6476f3
6 changed files with 24 additions and 12 deletions

View file

@ -32,7 +32,6 @@ import (
)
const (
preparedPostsMinLength = 80
desiredPostIndexLength = 400
)
@ -205,7 +204,7 @@ func (m *manager) getOrCreateTimeline(timelineAccountID string) Timeline {
var t Timeline
i, ok := m.accountTimelines.Load(timelineAccountID)
if !ok {
t = NewTimeline(timelineAccountID, m.db, m.tc)
t = NewTimeline(timelineAccountID, m.db, m.tc, m.log)
m.accountTimelines.Store(timelineAccountID, t)
} else {
t, ok = i.(Timeline)