summaryrefslogtreecommitdiff
path: root/core/structs.go
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-18 10:32:10 -0600
committernytpu <alex@nytpu.com>2021-03-18 10:32:10 -0600
commit3b26eb986350587f8330ef126c63a542b5c3f8ce (patch)
treed33b22d60ddd37a8a312110065489ddc23c80b37 /core/structs.go
parent5ba676ed5d2f152eda30fd0fcccafced3ff9bf10 (diff)
fix several typos throughout core
Diffstat (limited to 'core/structs.go')
-rw-r--r--core/structs.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/structs.go b/core/structs.go
index 28915e1..3162877 100644
--- a/core/structs.go
+++ b/core/structs.go
@@ -99,7 +99,7 @@ func (f *Feed) Len() int {
// Less compares Published of Items[i], Items[k] and returns true if Items[i] is
// before Items[j].
-func (f *Feed) Less(i, j int) {
+func (f *Feed) Less(i, j int) bool {
return f.Items[i].Published.Before(f.Items[j].Published)
}
@@ -109,25 +109,25 @@ func (f *Feed) Swap(i, j int) {
}
// Lock locks both feed and page mutexes.
-func (j *JsonData) Lock() {
+func (j *FullData) Lock() {
j.FeedsMu.Lock()
j.PagesMu.Lock()
}
// Unlock unlocks both feed and page mutexes.
-func (j *JsonData) Unlock() {
+func (j *FullData) Unlock() {
j.FeedsMu.Unlock()
j.PagesMu.Unlock()
}
// RLock read-locks both feed and page mutexes.
-func (j *JsonData) RLock() {
+func (j *FullData) RLock() {
j.FeedsMu.RLock()
j.PagesMu.RLock()
}
// RUnlock read-unlocks both feed and page mutexes.
-func (j *JsonData) RUnlock() {
+func (j *FullData) RUnlock() {
j.FeedsMu.RUnlock()
j.PagesMu.RUnlock()
}