fiatjaf / relayer

A Nostr relay server framework.
The Unlicense
303 stars 82 forks source link

remove storage plugins and move those to eventstore module #97

Closed fiatjaf closed 10 months ago

fiatjaf commented 10 months ago

I think having an independent pluggable generic storage interface thing for storing and querying events is not only useful for relayer and khatru, but also for writing standalone clients with internal storage or cache and even some other small things like njump -- so it is better if these live in a separate repository.

So I moved stuff into there from both here and from khatru and made them all conform to the same interface. Then I changed the relayer logic to indepedently check if an event can be deleted, as this was previously handled by the storage plugins, which I thought was a mistake.

What do you think, @mattn?

(This is still untested.)

mattn commented 10 months ago

LGTM, I did only test for example/basic but seems good to me.

fiatjaf commented 10 months ago

Then I will merge it quickly before you change your mind.