MCPcopy Create free account
hub / github.com/apache/maka / listSessionsForRecovery

Function listSessionsForRecovery

packages/runtime/src/session-manager.ts:5928–5933  ·  view source on GitHub ↗
(
  store: SessionStore,
  policy: RecoveryPolicy,
)

Source from the content-addressed store, hash-verified

5926const MAX_BEST_EFFORT_OUTCOME_COMMIT_ATTEMPTS = 2;
5927
5928function listSessionsForRecovery(
5929 store: SessionStore,
5930 policy: RecoveryPolicy,
5931): Promise<Array<SessionHeader | SessionSummary>> {
5932 return policy.kind === 'strict' ? policy.stores.sessionStore.listForRecovery() : store.list();
5933}
5934
5935async function recoverOr<T>(
5936 policy: RecoveryPolicy,

Calls 2

listForRecoveryMethod · 0.65
listMethod · 0.65

Tested by

no test coverage detected