Remove unused handler.ts file

This commit is contained in:
Alex Gleason 2023-05-23 20:52:21 -05:00
parent 161c77b85d
commit b0c58bff70
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 0 additions and 18 deletions

View File

@ -1,18 +0,0 @@
import { gossipDB } from '@/db.ts';
import { type Event } from '@/event.ts';
import { getAuthorRelays } from './gossip.ts';
function handleEvent(event: Event): void {
handleRelays(event);
}
/** Add author relays into the database. */
function handleRelays(event: Event): Promise<boolean[]> {
const relays = getAuthorRelays(event);
return Promise.all(
relays.map((relay) => gossipDB.put(event.pubkey, relay.toString())),
);
}
export { handleEvent };