mmm: read-only mode.

This commit is contained in:
fiatjaf
2026-01-18 17:56:59 -03:00
parent df64c5b6ec
commit b559828c72
6 changed files with 90 additions and 46 deletions

View File

@@ -11,6 +11,10 @@ import (
)
func (il *IndexingLayer) ReplaceEvent(evt nostr.Event) error {
if il.mmmm.ReadOnly {
return ReadOnly
}
il.mmmm.writeMutex.Lock()
defer il.mmmm.writeMutex.Unlock()