This commit is contained in:
nkanaev
2026-07-10 18:41:56 +01:00
parent 8e05b515c8
commit 018804a4a4
6 changed files with 23 additions and 25 deletions

View File

@@ -44,7 +44,6 @@ const (
STARRED ItemStatus = 2 STARRED ItemStatus = 2
) )
var StatusRepresentations = map[ItemStatus]string{ var StatusRepresentations = map[ItemStatus]string{
UNREAD: "unread", UNREAD: "unread",
READ: "read", READ: "read",
@@ -120,7 +119,6 @@ type FeedStat struct {
StarredCount int64 `json:"starred"` StarredCount int64 `json:"starred"`
} }
type Settings struct { type Settings struct {
Filter string `json:"filter"` Filter string `json:"filter"`
Feed string `json:"feed"` Feed string `json:"feed"`

View File

@@ -255,7 +255,7 @@ func BenchmarkMarkItemsRead_ByFolder(b *testing.B) {
FeedLink: fmt.Sprintf("http://f%d.xml", k), FeedLink: fmt.Sprintf("http://f%d.xml", k),
FolderID: &folder.Id, FolderID: &folder.Id,
}) })
for i := 0; i < 1_000_000 / 5; i++ { for i := 0; i < 1_000_000/5; i++ {
all = append(all, model.Item{ all = append(all, model.Item{
GUID: fmt.Sprintf("f%d-i%d", k, i), GUID: fmt.Sprintf("f%d-i%d", k, i),
FeedId: feed.Id, FeedId: feed.Id,