Skip to content

Commit

Permalink
Reintroduce synchronous validity peek optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Jul 9, 2020
1 parent f27e382 commit 4a9894a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Equinox.Cosmos/Cosmos.fs
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ type private ContainerWrapper(container : Container, ?initContainer : Container
let initGuard = initContainer |> Option.map (fun init -> AsyncCacheCell<unit>(init container))

member __.Container = container
member internal __.InitializationGate = match initGuard with Some g -> Some g.AwaitValue | _ -> None
member internal __.InitializationGate = match initGuard with Some g when not (g.IsValid()) -> Some g.AwaitValue | _ -> None

/// Defines a process for mapping from a Stream Name to the appropriate storage area, allowing control over segregation / co-locating of data
type Containers(categoryAndIdToDatabaseContainerStream : string -> string -> string*string*string, [<O; D(null)>]?disableInitialization) =
Expand Down

0 comments on commit 4a9894a

Please sign in to comment.