atrifat / nostr-monitoring-tool

A simple monitoring tool that classify nostr events (SFW/NSFW, language, topic, sentiment, toxic comment, etc). A core module of atrifat/nostr-filter-relay.
MIT License
3 stars 1 forks source link

[FEATURE] Add delay before publishing note events #6

Closed atrifat closed 1 year ago

atrifat commented 1 year ago

Issue

This is improvement related to issue #4 . Sometimes, notes events comes first before classification events, thus bypassing filter in atrifat/nostr-filter since classification events not exist (yet).

Solution

Add delay before publishing note events using setTimeout is a workaround to make sure classification events properly published before publishing note events.