Skip to content

Commit e1a7d8f

Browse files
committed
Tidy accessStrategy
1 parent 6618e38 commit e1a7d8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

equinox-fc/Domain/InventorySeries.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ module Cosmos =
6161

6262
open Equinox.Cosmos
6363

64+
let accessStrategy = AccessStrategy.Snapshot (Fold.isOrigin, Fold.snapshot)
6465
let resolve (context, cache) =
6566
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
6667
// For this stream, we uniformly use stale reads as:
6768
// a) we don't require any information from competing writers
6869
// b) while there are competing writers [which might cause us to have to retry a Transact], this should be infrequent
6970
let opt = Equinox.ResolveOption.AllowStale
70-
let accessStrategy = AccessStrategy.Snapshot (Fold.isOrigin, Fold.snapshot)
7171
fun id -> Resolver(context, Events.codec, Fold.fold, Fold.initial, cacheStrategy, accessStrategy).Resolve(id, opt)
7272
let createService (context, cache) =
7373
createService (resolve (context, cache))

0 commit comments

Comments
 (0)