From e58d2d81226c4cc4110747305d083b67903d621c Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 8 Dec 2022 17:35:14 +0000 Subject: [chore] move caches to a separate State{} structure (#1078) * move caches to a separate State{} structure Signed-off-by: kim * fix call to log.Panic not using formatted call Signed-off-by: kim * move caches to use interfaces, to make switchouts easier in future Signed-off-by: kim * fix rebase issue Signed-off-by: kim * improve code comment Signed-off-by: kim * fix further issues after rebase Signed-off-by: kim * heh Signed-off-by: kim * add missing license text Signed-off-by: kim Signed-off-by: kim --- internal/timeline/timeline.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/timeline') diff --git a/internal/timeline/timeline.go b/internal/timeline/timeline.go index fb7671819..3de029332 100644 --- a/internal/timeline/timeline.go +++ b/internal/timeline/timeline.go @@ -148,7 +148,8 @@ func NewTimeline( grabFunction GrabFunction, filterFunction FilterFunction, prepareFunction PrepareFunction, - skipInsertFunction SkipInsertFunction) (Timeline, error) { + skipInsertFunction SkipInsertFunction, +) (Timeline, error) { return &timeline{ indexedItems: &indexedItems{ skipInsert: skipInsertFunction, -- cgit v1.3