mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-06 06:28:07 -06:00
[chore] tidy + test timelines a bit better (#1865)
* [chore] tidy + test timelines a bit better * thanks linter
This commit is contained in:
parent
186e849dbf
commit
97bc2e713a
12 changed files with 685 additions and 479 deletions
|
|
@ -21,10 +21,10 @@ import (
|
|||
"container/list"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"codeberg.org/gruf/go-kv"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/db"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID
|
|||
t.items.data.Remove(e)
|
||||
}
|
||||
// We've got a proper db error.
|
||||
return fmt.Errorf("prepareXBetweenIDs: db error while trying to prepare %s: %w", entry.itemID, err)
|
||||
return gtserror.Newf("db error while trying to prepare %s: %w", entry.itemID, err)
|
||||
}
|
||||
entry.prepared = prepared
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue