Memorelay: add supportedNips property

This commit is contained in:
Alex Gleason 2024-01-03 14:06:13 -06:00
parent f667ba3c69
commit cfe44876af
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ class Memorelay implements EventStore {
this.#cache = new LRUCache<string, Event>(...args);
}
/** NIPs supported by this storage method. */
get supportedNips(): number[] {
return [1];
}
/** Iterate stored events. */
*#events(): Generator<Event> {
for (const event of this.#cache.values()) {