(ownerWeight?: number)
| 334 | } |
| 335 | |
| 336 | function 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 | |
| 341 | function ownerRedisKey(ownerKey: string): string { |
| 342 | return `${DISTRIBUTED_KEY_PREFIX}:${ownerKey}` |
no outgoing calls
no test coverage detected