From 2dc9fc1626507bb54417fc4a1920b847cafb27a2 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 25 Aug 2021 15:34:33 +0200 Subject: Pg to bun (#148) * start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes --- internal/timeline/remove.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/timeline/remove.go') diff --git a/internal/timeline/remove.go b/internal/timeline/remove.go index cf0b0b617..031dace1f 100644 --- a/internal/timeline/remove.go +++ b/internal/timeline/remove.go @@ -20,12 +20,13 @@ package timeline import ( "container/list" + "context" "errors" "github.com/sirupsen/logrus" ) -func (t *timeline) Remove(statusID string) (int, error) { +func (t *timeline) Remove(ctx context.Context, statusID string) (int, error) { l := t.log.WithFields(logrus.Fields{ "func": "Remove", "accountTimeline": t.accountID, @@ -77,7 +78,7 @@ func (t *timeline) Remove(statusID string) (int, error) { return removed, nil } -func (t *timeline) RemoveAllBy(accountID string) (int, error) { +func (t *timeline) RemoveAllBy(ctx context.Context, accountID string) (int, error) { l := t.log.WithFields(logrus.Fields{ "func": "RemoveAllBy", "accountTimeline": t.accountID, -- cgit v1.2.3