MCPcopy
hub / github.com/FlowiseAI/Flowise / getInstance

Method getInstance

packages/server/src/utils/rateLimit.ts:87–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 public static getInstance(): RateLimiterManager {
88 if (!RateLimiterManager.instance) {
89 RateLimiterManager.instance = new RateLimiterManager()
90 }
91 return RateLimiterManager.instance
92 }
93
94 public async addRateLimiter(id: string, duration: number, limit: number, message: string): Promise<void> {
95 const release = await this.rateLimiterMutex.acquire()

Callers 2

executeAgentFlowFunction · 0.45
getRunningExpressAppFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected