Skip to content

Commit

Permalink
delay first touch
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Mar 26, 2019
1 parent 6b554e3 commit 893129b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion equinox-sync/Sync/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ module EventStoreReader =
return false
| Tranche (range, batchSize) ->
use _ = Serilog.Context.LogContext.PushProperty("Tranche",chunk range.Current)
Log.Warning("Reading chunk; batch size {bs}", batchSize)
Log.Warning("Commencing tranche, batch size {bs}", batchSize)
let reader = ReaderGroup(conn, enumEvents, postBatch)
let! res = reader.Pump(range, batchSize, __.SlicesStats, __.OverallStats)
match res with
Expand Down Expand Up @@ -760,6 +760,7 @@ let main argv =
let destination = cosmos.Connect "ProjectorTemplate" |> Async.RunSynchronously
let colls = CosmosCollections(cosmos.Database, cosmos.Collection)
Equinox.Cosmos.Core.CosmosContext(destination, colls, Log.Logger)
Thread.Sleep(100) // https://github.com/EventStore/EventStore/issues/1899
run ctx source readerSpec (writerQueueLen, writerCount, readerQueueLen) |> Async.RunSynchronously
0
with :? Argu.ArguParseException as e -> eprintfn "%s" e.Message; 1
Expand Down

0 comments on commit 893129b

Please sign in to comment.