Implement custom throttle function for performance

This commit is contained in:
Jon Staab
2024-12-11 16:41:31 -08:00
parent ab0517e804
commit 0fcb2482d8
12 changed files with 68 additions and 34 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import {throttle} from 'throttle-debounce'
import {Emitter, makePromise, defer, sleep, tryCatch, randomId, equals} from "@welshman/lib"
import {Emitter, throttle, makePromise, defer, sleep, tryCatch, randomId, equals} from "@welshman/lib"
import {createEvent, normalizeRelayUrl, TrustedEvent, StampedEvent, NOSTR_CONNECT} from "@welshman/util"
import {subscribe, publish, Subscription, SubscriptionEvent} from "@welshman/net"
import {ISigner, decrypt, hash, own} from '../util'