Skip to content

Commit 70c2c8a

Browse files
committed
Formatting consistency
1 parent face068 commit 70c2c8a

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

equinox-fc/Domain/Allocation.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ let create resolve = Service(Serilog.Log.ForContext<Service>(), resolve, maxAtte
229229
module EventStore =
230230

231231
open Equinox.EventStore
232-
let resolve (context, cache) =
232+
let private resolve (context, cache) =
233233
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
234234
// while there are competing writers [which might cause us to have to retry a Transact], this should be infrequent
235235
let opt = Equinox.ResolveOption.AllowStale
@@ -241,7 +241,7 @@ module EventStore =
241241
module Cosmos =
242242

243243
open Equinox.Cosmos
244-
let resolve (context, cache) =
244+
let private resolve (context, cache) =
245245
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
246246
// while there are competing writers [which might cause us to have to retry a Transact], this should be infrequent
247247
let opt = Equinox.ResolveOption.AllowStale

equinox-fc/Domain/Allocator.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let create resolve = Service(Serilog.Log.ForContext<Service>(), resolve, 3)
5555
module EventStore =
5656

5757
open Equinox.EventStore
58-
let resolve (context, cache) =
58+
let private resolve (context, cache) =
5959
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
6060
// while there are competing writers [which might cause us to have to retry a Transact], this should be infrequent
6161
let opt = Equinox.ResolveOption.AllowStale
@@ -66,7 +66,7 @@ module EventStore =
6666
module Cosmos =
6767

6868
open Equinox.Cosmos
69-
let resolve (context, cache) =
69+
let private resolve (context, cache) =
7070
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
7171
// while there are competing writers [which might cause us to have to retry a Transact], this should be infrequent
7272
let opt = Equinox.ResolveOption.AllowStale

equinox-fc/Domain/Ticket.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ let create resolve = Service(Serilog.Log.ForContext<Service>(), resolve, 3)
6363
module EventStore =
6464

6565
open Equinox.EventStore
66-
let resolve (context, cache) =
66+
let private resolve (context, cache) =
6767
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
6868
// because we only ever need the last event, we use the Equinox.EventStore access strategy that optimizes around that
6969
Resolver(context, Events.codec, Fold.fold, Fold.initial, cacheStrategy, AccessStrategy.LatestKnownEvent).Resolve
@@ -73,7 +73,7 @@ module EventStore =
7373
module Cosmos =
7474

7575
open Equinox.Cosmos
76-
let resolve (context, cache) =
76+
let private resolve (context, cache) =
7777
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
7878
// because we only ever need the last event to build the state, we feed the events we are writing
7979
// (there's always exactly one if we are writing), into the unfolds slot so a single point read with etag check gets us state in one trip

equinox-fc/Domain/TicketList.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ let create resolve = Service(Serilog.Log.ForContext<Service>(), resolve, maxAtte
4242
module EventStore =
4343

4444
open Equinox.EventStore
45-
let resolve (context, cache) =
45+
let private resolve (context, cache) =
4646
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
4747
// while there are competing writers (which might cause us to have to retry a Transact and discover it is redundant), there is never a cost to being wrong
4848
let opt = Equinox.ResolveOption.AllowStale
@@ -55,7 +55,7 @@ module EventStore =
5555
module Cosmos =
5656

5757
open Equinox.Cosmos
58-
let resolve (context, cache) =
58+
let private resolve (context, cache) =
5959
let cacheStrategy = CachingStrategy.SlidingWindow (cache, System.TimeSpan.FromMinutes 20.)
6060
// while there are competing writers (which might cause us to have to retry a Transact and discover it is redundant), there is never a cost to being wrong
6161
let opt = Equinox.ResolveOption.AllowStale

0 commit comments

Comments
 (0)