Skip to content

Commit

Permalink
Target FsCodec 1.2.0; sundry tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Oct 26, 2019
1 parent 458dda2 commit 8a7bdac
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The `Unreleased` section name is replaced by the expected version of next releas

### Changed

- Targeted `FsCodec` v `1.2.0`
- `Cosmos`: renamed `Connector`'s `maxRetryAttemptsOnThrottledRequests` and `maxRetryWaitTimeInSeconds` to maxRetryAttemptsOnRateLimitedRequests` and `maxRetryWaitTimeOnRateLimitedRequests` and changed latter to `TimeSpan` to match V3 SDK [#171](https://github.com/jet/equinox/pull/171)

### Removed
Expand Down
2 changes: 1 addition & 1 deletion samples/Store/Domain/Domain.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' == 'net461' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.0.0" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.2.0" />
<PackageReference Include="FSharp.UMX" Version="1.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/Store/Integration/CartIntegration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let snapshot = Domain.Cart.Folds.isOrigin, Domain.Cart.Folds.compact
let createMemoryStore () =
new VolatileStore ()
let createServiceMemory log store =
Backend.Cart.Service(log, fun (id,opt) -> Resolver(store, fold, initial).Resolve(id,?option=opt))
Backend.Cart.Service(log, fun (id,opt) -> MemoryStore.Resolver(store, fold, initial).Resolve(id,?option=opt))

let codec = Domain.Cart.Events.codec

Expand Down
1 change: 0 additions & 1 deletion samples/Store/Integration/FavoritesIntegration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
open Equinox
open Equinox.Cosmos.Integration
open Swensen.Unquote
open Xunit

#nowarn "1182" // From hereon in, we may have some 'unused' privates (the tests)

Expand Down
2 changes: 1 addition & 1 deletion samples/Tutorial/AsAt.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module Cosmos =
open Equinox.Cosmos
let read key = System.Environment.GetEnvironmentVariable key |> Option.ofObj |> Option.get

let connector = Connector(requestTimeout=TimeSpan.FromSeconds 5., maxRetryAttemptsOnThrottledRequests=2, maxRetryWaitTimeInSeconds=5, log=Log.log, mode=ConnectionMode.Gateway)
let connector = Connector(TimeSpan.FromSeconds 5., 2, TimeSpan.FromSeconds 5., log=Log.log, mode=ConnectionMode.Gateway)
let conn = connector.Connect(appName, Discovery.FromConnectionString (read "EQUINOX_COSMOS_CONNECTION")) |> Async.RunSynchronously
let context = Context(conn, read "EQUINOX_COSMOS_DATABASE", read "EQUINOX_COSMOS_CONTAINER")
let cacheStrategy = CachingStrategy.SlidingWindow (cache, TimeSpan.FromMinutes 20.) // OR CachingStrategy.NoCaching
Expand Down
2 changes: 1 addition & 1 deletion samples/Tutorial/Cosmos.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let cache = Equinox.Cache(appName, 20)
module Store =
let read key = System.Environment.GetEnvironmentVariable key |> Option.ofObj |> Option.get

let connector = Connector(requestTimeout=TimeSpan.FromSeconds 5., maxRetryAttemptsOnThrottledRequests=2, maxRetryWaitTimeInSeconds=5, log=Log.log)
let connector = Connector(TimeSpan.FromSeconds 5., 2, TimeSpan.FromSeconds 5., log=Log.log)
let conn = connector.Connect(appName, Discovery.FromConnectionString (read "EQUINOX_COSMOS_CONNECTION")) |> Async.RunSynchronously
let gateway = Gateway(conn, BatchingPolicy())

Expand Down
4 changes: 1 addition & 3 deletions samples/Tutorial/Favorites.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
type Event =
| Added of string
| Removed of string
// No IUnionContract or Codec required as we're using MemoryStore in this part
// interface TypeShape.UnionContract.IUnionContract
//let codec = FsCodec.NewtonsoftJson.Codec.Create<Event>()
// No IUnionContract or Codec required as we're using MemoryStore in this example

let initial : string list = []
let evolve state = function
Expand Down
2 changes: 1 addition & 1 deletion samples/Tutorial/Todo.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ let cache = Equinox.Cache(appName, 20)
module Store =
let read key = System.Environment.GetEnvironmentVariable key |> Option.ofObj |> Option.get

let connector = Connector(requestTimeout=TimeSpan.FromSeconds 5., maxRetryAttemptsOnThrottledRequests=2, maxRetryWaitTimeInSeconds=5, log=log)
let connector = Connector(TimeSpan.FromSeconds 5., 2, TimeSpan.FromSeconds 5., log=log)
let conn = connector.Connect(appName, Discovery.FromConnectionString (read "EQUINOX_COSMOS_CONNECTION")) |> Async.RunSynchronously
let gateway = Gateway(conn, BatchingPolicy())

Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.Cosmos/Equinox.Cosmos.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PackageReference Include="FSharp.Core" Version="3.1.2.5" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.0.0" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.2.0" />
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
<PackageReference Include="Microsoft.Azure.DocumentDB" Version="2.2.0" Condition=" '$(TargetFramework)' != 'netstandard2.0' " />
<PackageReference Include="Microsoft.Azure.DocumentDB.Core" Version="2.2.0" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />
Expand Down
2 changes: 1 addition & 1 deletion src/Equinox.EventStore/Equinox.EventStore.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="FSharp.Core" Version="4.3.4" Condition=" '$(TargetFramework)' == 'netstandard2.0' " />

<PackageReference Include="EventStore.Client" Version="5.0.1" />
<PackageReference Include="FsCodec" Version="1.0.0" />
<PackageReference Include="FsCodec" Version="1.2.0" />
<PackageReference Include="FSharp.Control.AsyncSeq" Version="2.0.21" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<ItemGroup>
<PackageReference Include="FsCheck.xUnit" Version="2.14.0" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.0.0" />
<PackageReference Include="FsCodec.NewtonsoftJson" Version="1.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="4.0.0" />
<Reference Include="System.Runtime.Caching" Condition=" '$(TargetFramework)' != 'netstandard2.0'" />
Expand Down

0 comments on commit 8a7bdac

Please sign in to comment.