Stream from both NDB and network relays
This commit takes a step back from the full local relay model by treating NostrDB as one of the many relays streamed from, instead of the one exclusive relay that other classes rely on. This was done to reduce regression risk from the local relay model migration, without discarding the migration work already done. The full "local relay model" behavior (exclusive NDB streaming) was hidden behind a feature flag for easy migration later on. Closes: https://github.com/damus-io/damus/issues/3225 Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -33,7 +33,7 @@ extension Ndb {
|
||||
return try self.was(noteKey: noteKey, seenOnAnyOf: relayUrls.map({ $0.absoluteString }), txn: txn)
|
||||
}
|
||||
|
||||
func process_event(_ str: String, originRelayURL: RelayURL? = nil) -> Bool {
|
||||
func processEvent(_ str: String, originRelayURL: RelayURL? = nil) -> Bool {
|
||||
self.process_event(str, originRelayURL: originRelayURL?.absoluteString)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user