Improve logging consistency across the application, handle context cancellation during WebSocket writes, and introduce async ACL reconfiguration for admin events.
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"encoders.orly/hex"
|
||||
"encoders.orly/ints"
|
||||
"encoders.orly/text"
|
||||
"lol.mleku.dev/log"
|
||||
)
|
||||
|
||||
// ToCanonical converts the event to the canonical encoding used to derive the
|
||||
@@ -23,7 +22,7 @@ func (ev *E) ToCanonical(dst []byte) (b []byte) {
|
||||
b = append(b, ',')
|
||||
b = text.AppendQuote(b, ev.Content, text.NostrEscape)
|
||||
b = append(b, ']')
|
||||
log.D.F("canonical: %s", b)
|
||||
// log.D.F("canonical: %s", b)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -333,7 +333,7 @@ var (
|
||||
CommunityDefinition = &K{34550}
|
||||
ACLEvent = &K{39998}
|
||||
// ParameterizedReplaceableEnd is an event type that...
|
||||
ParameterizedReplaceableEnd = &K{39999}
|
||||
ParameterizedReplaceableEnd = &K{40000}
|
||||
)
|
||||
|
||||
var MapMx sync.RWMutex
|
||||
|
||||
Reference in New Issue
Block a user