MCPcopy Create free account
hub / github.com/Effect-TS/effect / effectiveInterval

Function effectiveInterval

packages/cluster/src/internal/shardLock.ts:5–9  ·  view source on GitHub ↗
(config: ShardingConfig["Type"])

Source from the content-addressed store, hash-verified

3
4/** @internal */
5export const effectiveInterval = (config: ShardingConfig["Type"]): Duration.Duration =>
6 Duration.min(
7 config.shardLockRefreshInterval,
8 Duration.unsafeDivide(config.shardLockExpiration, 3)
9 )

Callers 2

Sharding.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected