@@ -196,7 +196,7 @@ type internal Enum() =
196196 static member Unfolds ( xs : Unfold []) : ITimelineEvent < byte []> seq = seq {
197197 for x in xs -> FsCodec.Core.TimelineEvent.Create( x.i, x.c, x.d, x.m, Guid.Empty, null , null , x.t, isUnfold = true ) }
198198 static member EventsAndUnfolds ( x : Tip , ? minIndex , ? maxIndex ): ITimelineEvent < byte []> seq =
199- Enum.Events( x, ?minIndex= minIndex, ?maxIndex= maxIndex)
199+ Enum.Events( x, ?minIndex = minIndex, ?maxIndex = maxIndex)
200200 |> Seq.append ( Enum.Unfolds x.u)
201201 // where Index is equal, unfolds get delivered after the events so the fold semantics can be 'idempotent'
202202 |> Seq.sortBy ( fun x -> x.Index, x.IsUnfold)
@@ -658,7 +658,7 @@ module internal Tip =
658658 | ReadResult.NotFound -> return Result.NotFound
659659 | ReadResult.Found tip ->
660660 let minIndex = maybePos |> Option.map ( fun x -> x.index)
661- return Result.Found ( Position.fromTip tip, Enum.EventsAndUnfolds( tip, ?maxIndex= maxIndex, ?minIndex= minIndex) |> Array.ofSeq) }
661+ return Result.Found ( Position.fromTip tip, Enum.EventsAndUnfolds( tip, ?maxIndex = maxIndex, ?minIndex = minIndex) |> Array.ofSeq) }
662662
663663 module internal Query =
664664
@@ -686,8 +686,8 @@ module internal Tip =
686686 let prams = Seq.map snd args
687687 ( QueryDefinition queryString, prams) ||> Seq.fold ( fun q wp -> q |> wp)
688688 log.Debug( " EqxCosmos Query {query} on {stream}" , query.QueryText, stream)
689- let qro = QueryRequestOptions( PartitionKey= Nullable ( PartitionKey stream), MaxItemCount= Nullable maxItems)
690- container.GetItemQueryIterator< Batch>( query, requestOptions= qro)
689+ let qro = QueryRequestOptions( PartitionKey = Nullable ( PartitionKey stream), MaxItemCount = Nullable maxItems)
690+ container.GetItemQueryIterator< Batch>( query, requestOptions = qro)
691691
692692 // Unrolls the Batches in a response
693693 // NOTE when reading backwards, the events are emitted in reverse Index order to suit the takeWhile consumption
@@ -700,7 +700,7 @@ module internal Tip =
700700 | _ -> ()
701701 let batches , ru = Array.ofSeq res, res.RequestCharge
702702 let unwrapBatch ( b : Batch ) =
703- Enum.Events( b, ?minIndex= minIndex, ?maxIndex= maxIndex)
703+ Enum.Events( b, ?minIndex = minIndex, ?maxIndex = maxIndex)
704704 |> if direction = Direction.Backward then System.Linq.Enumerable.Reverse else id
705705 let events = batches |> Seq.collect unwrapBatch |> Array.ofSeq
706706 let ( Log.BatchLen bytes ), count = events, events.Length
@@ -1044,7 +1044,7 @@ type StoreClient(container : Container, fallback : Container option, batching :
10441044 return Token.create stream pos, events }
10451045
10461046 member con.Load ( log , ( stream , maybePos ), ( tryDecode , isOrigin ), includeUnfolds ): Async < StreamToken * 'event []> =
1047- if not includeUnfolds then con.Read( log, stream, Direction.Backward, ( tryDecode, isOrigin), forceExcludeTip= true )
1047+ if not includeUnfolds then con.Read( log, stream, Direction.Backward, ( tryDecode, isOrigin), forceExcludeTip = true )
10481048 else async {
10491049 match ! Tip.tryLoad log retry.TipRetryPolicy ( container, stream) ( maybePos, None) with
10501050 | Tip.Result.NotFound -> return Token.create stream Position.fromKnownEmpty, Array.empty
@@ -1062,7 +1062,7 @@ type StoreClient(container : Container, fallback : Container option, batching :
10621062
10631063 member con.Reload ( log , ( stream , pos ), ( tryDecode , isOrigin ), ? preview ): Async < LoadFromTokenResult < 'event >> =
10641064 let query ( pos , xs ) = async {
1065- let! res = con.Read( log, stream, Direction.Backward, ( tryDecode, isOrigin), tip=( pos, xs), minIndex= pos.index)
1065+ let! res = con.Read( log, stream, Direction.Backward, ( tryDecode, isOrigin), tip=( pos, xs), minIndex = pos.index)
10661066 return LoadFromTokenResult.Found res }
10671067 match preview with
10681068 | Some ( pos, xs) -> query ( pos, xs)
@@ -1086,7 +1086,7 @@ type internal Category<'event, 'state, 'context>(store : StoreClient, codec : IE
10861086 let! token , events = store.Load( log, ( stream, None), ( codec.TryDecode, isOrigin), includeUnfolds)
10871087 return token, fold initial events }
10881088 member __.Reload ( log , ( Token.Unpack ( stream , pos ) as streamToken ), state , fold , isOrigin , ? preloaded ): Async < StreamToken * 'state > = async {
1089- match ! store.Reload( log, ( stream, pos), ( codec.TryDecode, isOrigin), ?preview= preloaded) with
1089+ match ! store.Reload( log, ( stream, pos), ( codec.TryDecode, isOrigin), ?preview = preloaded) with
10901090 | LoadFromTokenResult.Unchanged -> return streamToken, state
10911091 | LoadFromTokenResult.Found ( token', events) -> return token', fold state events }
10921092 member cat.Sync ( log , token , state , events , mapUnfolds , fold , isOrigin , context ): Async < SyncResult < 'state >> = async {
@@ -1215,7 +1215,7 @@ type CosmosStoreConnection
12151215 else Some ( fun cosmosContainer -> Initialization.createSyncStoredProcIfNotExists None cosmosContainer |> Async.Ignore)
12161216 let secondaryD , secondaryC = primaryDatabaseAndContainerToSecondary ( d, c)
12171217 let primaryContainer , secondaryContainer = createContainer ( d, c), createSecondaryContainer ( secondaryD, secondaryC)
1218- Initialization.ContainerInitializerGuard( createGateway primaryContainer, Option.map createGateway secondaryContainer, ?initContainer= init)
1218+ Initialization.ContainerInitializerGuard( createGateway primaryContainer, Option.map createGateway secondaryContainer, ?initContainer = init)
12191219 let g = containerInitGuards.GetOrAdd(( databaseId, containerId), createContainerInitializerGuard)
12201220 g, streamName
12211221
@@ -1444,7 +1444,7 @@ type EventsContext internal
14441444 member internal __.GetLazy ( stream , ? batchSize , ? direction , ? minIndex , ? maxIndex ) : AsyncSeq < ITimelineEvent < byte []>[]> =
14451445 let direction = defaultArg direction Direction.Forward
14461446 let batching = BatchingPolicy( defaultArg batchSize batching.MaxItems)
1447- store.ReadLazy( log, batching, stream, direction, ( Some, fun _ -> false ), ?minIndex= minIndex, ?maxIndex= maxIndex)
1447+ store.ReadLazy( log, batching, stream, direction, ( Some, fun _ -> false ), ?minIndex = minIndex, ?maxIndex = maxIndex)
14481448
14491449 member internal __.GetInternal (( stream , startPos ), ? maxCount , ? direction ) = async {
14501450 let direction = defaultArg direction Direction.Forward
@@ -1457,7 +1457,7 @@ type EventsContext internal
14571457 | Some limit -> maxCountPredicate limit
14581458 | None -> fun _ -> false
14591459 let minIndex , maxIndex = getRange direction startPos
1460- let! token , events = store.Read( log, stream, direction, ( Some, isOrigin), ?minIndex= minIndex, ?maxIndex= maxIndex)
1460+ let! token , events = store.Read( log, stream, direction, ( Some, isOrigin), ?minIndex = minIndex, ?maxIndex = maxIndex)
14611461 if direction = Direction.Backward then System.Array.Reverse events
14621462 return token, events }
14631463
@@ -1470,7 +1470,7 @@ type EventsContext internal
14701470 /// Reads in batches of `batchSize` from the specified `Position`, allowing the reader to efficiently walk away from a running query
14711471 /// ... NB as long as they Dispose!
14721472 member __.Walk ( stream , batchSize , ? minIndex , ? maxIndex , ? direction ) : AsyncSeq < ITimelineEvent < byte []>[]> =
1473- __. GetLazy( stream, batchSize, ?direction= direction, ?minIndex= minIndex, ?maxIndex= maxIndex)
1473+ __. GetLazy( stream, batchSize, ?direction = direction, ?minIndex = minIndex, ?maxIndex = maxIndex)
14741474
14751475 /// Reads all Events from a `Position` in a given `direction`
14761476 member __.Read ( stream , ? position , ? maxCount , ? direction ) : Async < Position * ITimelineEvent < byte []>[]> =
@@ -1533,7 +1533,7 @@ module Events =
15331533 /// Returns an empty sequence if the stream is empty or if the sequence number is larger than the largest
15341534 /// sequence number in the stream.
15351535 let getAll ( ctx : EventsContext ) ( streamName : string ) ( index : int64 ) ( batchSize : int ) : AsyncSeq < ITimelineEvent < byte []>[]> =
1536- ctx.Walk( ctx.StreamId streamName, batchSize, minIndex= index)
1536+ ctx.Walk( ctx.StreamId streamName, batchSize, minIndex = index)
15371537
15381538 /// Returns an async array of events in the stream starting at the specified sequence number,
15391539 /// number of events to read is specified by batchSize
@@ -1566,7 +1566,7 @@ module Events =
15661566 /// Returns an empty sequence if the stream is empty or if the sequence number is smaller than the smallest
15671567 /// sequence number in the stream.
15681568 let getAllBackwards ( ctx : EventsContext ) ( streamName : string ) ( index : int64 ) ( batchSize : int ) : AsyncSeq < ITimelineEvent < byte []>[]> =
1569- ctx.Walk( ctx.StreamId streamName, batchSize, maxIndex= index, direction= Direction.Backward)
1569+ ctx.Walk( ctx.StreamId streamName, batchSize, maxIndex = index, direction = Direction.Backward)
15701570
15711571 /// Returns an async array of events in the stream backwards starting from the specified sequence number,
15721572 /// number of events to read is specified by batchSize
0 commit comments