MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeOwnerWeight

Function normalizeOwnerWeight

apps/sim/lib/execution/isolated-vm.ts:336–339  ·  view source on GitHub ↗
(ownerWeight?: number)

Source from the content-addressed store, hash-verified

334}
335
336function normalizeOwnerWeight(ownerWeight?: number): number {
337 if (!Number.isFinite(ownerWeight) || ownerWeight === undefined) return 1
338 return Math.max(1, Math.min(MAX_OWNER_WEIGHT, Math.floor(ownerWeight)))
339}
340
341function ownerRedisKey(ownerKey: string): string {
342 return `${DISTRIBUTED_KEY_PREFIX}:${ownerKey}`

Callers 1

executeInIsolatedVMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected