mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
go fmt
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user