MCPcopy Create free account
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/lib/core/rate-limiter/rate-limiter.ts:38–40  ·  view source on GitHub ↗
(storage?: RateLimitStorageAdapter)

Source from the content-addressed store, hash-verified

36 private storage: RateLimitStorageAdapter
37
38 constructor(storage?: RateLimitStorageAdapter) {
39 this.storage = storage ?? createStorageAdapter()
40 }
41
42 private getRateLimitKey(userId: string, subscription: SubscriptionInfo | null): string {
43 if (!subscription) return userId

Callers

nothing calls this directly

Calls 1

createStorageAdapterFunction · 0.90

Tested by

no test coverage detected