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

Function makeFailoverStorageState

packages/effect/test/cluster/Sharding.test.ts:1593–1606  ·  view source on GitHub ↗
(
  overrides?: Partial<FailoverStorageState>
)

Source from the content-addressed store, hash-verified

1591}
1592
1593const makeFailoverStorageState = (
1594 overrides?: Partial<FailoverStorageState>
1595): FailoverStorageState => ({
1596 blackholed: false,
1597 assignSelf: true,
1598 otherRunnerHealthy: false,
1599 releaseAllDuration: 0,
1600 runner: undefined,
1601 acquireCalls: [],
1602 refreshCalls: [],
1603 releaseCalls: [],
1604 releaseAllCalls: [],
1605 ...overrides
1606})
1607
1608const makeFailoverStorage = (state: FailoverStorageState, clock: Clock.Clock) =>
1609 RunnerStorage.RunnerStorage.of({

Callers 1

Sharding.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected