Fix marking events as seen in subscriptions when not matched

This commit is contained in:
Jon Staab
2024-11-11 11:45:03 -08:00
parent 2bc5565580
commit 76ad0ba976
5 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/app",
"version": "0.0.24",
"version": "0.0.25",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of svelte stores for use in building nostr client applications.",
+1 -1
View File
@@ -221,7 +221,7 @@ const onConnectionReceive = ({url, state}: Connection, [verb, ...extra]: Message
const onConnectionError = ({url}: Connection) =>
updateRelayStats([url, stats => {
stats.last_error = now()
stats.recent_errors = stats.recent_errors.concat(now()).slice(-10)
stats.recent_errors = uniq(stats.recent_errors.concat(now())).slice(-10)
}])
export const trackRelayStats = (connection: Connection) => {