130-fix-empty-relay-issue #131
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "130-fix-empty-relay-issue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #30.
Includes a refactor of the relevant section in the
MetadataController
.MetadataController
andNostrController
use different types when dealing with User Relays and going forward it would be good to align approaches. Otto confirmed that it's in the post-MVP roadmap.Current Limitations
@ -7,0 +8,4 @@
* Number of milliseconds in one week.
* Calc based on: 7 * 24 * 60 * 60 * 1000
*/
export const ONE_WEEK_IN_MS: number = 604800000
we should use this const instead of
const oneWeekInMS = 7 * 24 * 60 * 60 * 1000 // Number of milliseconds in one week
at@ -0,0 +6,4 @@
import { RelayMap, RelaySet } from '../types'
const READ_MARKER = "read"
const WRITE_MARKET = "write"
small typo
@ -0,0 +75,4 @@
[SIGIT_RELAY]: { write: true, read: true }
})
const isOlderThanOneWeek = (cachedAt: number) => {
Maybe we can use this function as an util, it's used in
MetadataContoller.ts
too?