add XXX to core.JsonData mutex

This commit is contained in:
nytpu
2021-03-17 09:37:41 -06:00
parent 5c735b4ce0
commit e42ebd8171
+4
View File
@@ -110,6 +110,10 @@ func (f *Feed) Swap(i, j int) {
f.Items[i], f.Items[j] = f.Items[j], f.Items[i]
}
// XXX: do both feedsMu and pagesMu need to be (un)locked together or can they
// be locked individually? they are in the same struct but they're different
// elements so they shuld be able to be accessed at the same time, right?
// Lock locks both feed and page mutexes.
func (j *jsonData) Lock() {
j.feedsMu.Lock()