From e42ebd8171c4acad153bf0cfd231f326c0b73936 Mon Sep 17 00:00:00 2001 From: nytpu Date: Wed, 17 Mar 2021 09:37:41 -0600 Subject: [PATCH] add XXX to core.JsonData mutex --- core/structs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/structs.go b/core/structs.go index e5a3ab5..67573cf 100644 --- a/core/structs.go +++ b/core/structs.go @@ -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()