Skip to content

Commit 8dbba09

Browse files
committed
Target sdk 8
1 parent 59a2076 commit 8dbba09

File tree

20 files changed

+27
-36
lines changed

20 files changed

+27
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v2
2727

28-
- uses: actions/setup-dotnet@v1
29-
with:
30-
dotnet-version: '6.0.x'
31-
3228
- name: Install message-db
3329
env:
3430
MESSAGE_DB_VERSION: 1.3.0

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
<!-- Global Project config flags -->
1212
<WarningLevel>5</WarningLevel>
13+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1314
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
1415
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1516

1617
<!-- suppress false positive warning FS2003 about invalid version of AssemblyInformationalVersionAttribute -->
1718
<!-- supress NU5105 triggered by trailing dotted elements such as .43 and .2 in e.g.: pr.43-rc1.2: The package version '<X>' uses SemVer 2.0.0 or components of SemVer 1.0.0 that are not supported on legacy clients. Change the package version to a SemVer 1.0.0 string. If the version contains a release label it must start with a letter. This message can be ignored if the package is not intended for older clients. -->
1819
<NoWarn>$(NoWarn);FS2003;NU5105</NoWarn>
19-
<WarningsAsErrors>true</WarningsAsErrors>
2020
</PropertyGroup>
2121
<ItemGroup>
2222
<!-- SourceLink etc -->

azure-pipelines.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,5 @@ jobs:
4747
pool:
4848
vmImage: 'macOS-latest'
4949
steps:
50-
- task: UseDotNet@2
51-
displayName: 'Install .NET Core sdk'
52-
inputs:
53-
packageType: sdk
54-
version: 6.x
5550
- script: dotnet pack build.proj
5651
displayName: dotnet pack build.proj

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.300",
3+
"version": "8.0.101",
44
"rollForward": "latestMajor"
55
}
66
}

src/Propulsion.CosmosStore/EquinoxSystemTextJsonParser.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ open Equinox.CosmosStore.Core
44

55
open Propulsion.Sinks
66

7-
/// Maps fields in an Event within an Equinox.Cosmos V1+ Event (in a Batch or Tip) to the interface defined by Propulsion.Streams
8-
/// <remarks>NOTE No attempt is made to filter out Tip (`id=-1`) batches from the ChangeFeed; Equinox versions >= 3, Tip batches can bear events.</remarks>
7+
/// <summary>Maps fields in an Event within an Equinox.Cosmos V1+ Event (in a Batch or Tip) to the interface defined by Propulsion.Streams.</summary>
8+
/// <remarks>NOTE No attempt is made to filter out Tip (`id=-1`) batches from the ChangeFeed, as in Equinox versions >= 3, Tip batches can bear events.</remarks>
99
[<RequireQualifiedAccess>]
1010
#if !COSMOSV3
1111
module EquinoxSystemTextJsonParser =

src/Propulsion.DynamoStore/AppendsEpoch.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module Events =
4545
let next (x: Events.StreamSpan) = int x.i + x.c.Length
4646
/// Aggregates all spans per stream into a single Span from the lowest index to the highest
4747
let flatten: Events.StreamSpan seq -> Events.StreamSpan seq =
48-
Seq.groupBy (fun x -> x.p)
48+
Seq.groupBy _.p
4949
>> Seq.map (fun (p, xs) ->
5050
let mutable i = -1L
5151
let c = ResizeArray()
@@ -175,7 +175,7 @@ module Reader =
175175

176176
member _.ReadVersion(partitionId, epochId): Async<int64> =
177177
let decider = resolve (partitionId, epochId, System.Int64.MaxValue)
178-
decider.QueryEx(fun c -> c.Version)
178+
decider.QueryEx _.Version
179179

180180
module Factory =
181181

src/Propulsion.DynamoStore/DynamoDbExport.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type Importer(buffer: DynamoStoreIndex.Buffer, emit, dump) =
4747
let _ok, _ = buffer.LogIndexed(string streamSpan.p, { i = int streamSpan.i; c = streamSpan.c })
4848
pending.Remove(string streamSpan.p) |> ignore
4949
totalIngestedSpans <- totalIngestedSpans + batch.LongLength
50-
return pending.Values |> Seq.sumBy (fun x -> x.c.Length) }
50+
return pending.Values |> Seq.sumBy _.c.Length }
5151

5252
/// Ingest a file worth of data, flushing whenever we've accumulated enough pending data to be written
5353
member _.IngestDynamoDbJsonFile(file, bufferedEventsFlushThreshold) = async {

src/Propulsion.DynamoStore/DynamoStoreIndex.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ module Reader =
100100
let! maybeStreamBytes, _version, state = epochs.Read(partitionId, epochId, 0)
101101
let sizeB, loadS = defaultValueArg maybeStreamBytes 0L, Stopwatch.elapsedSeconds ts
102102
let spans = state.changes |> Array.collect (fun struct (_i, spans) -> spans)
103-
let totalEvents = spans |> Array.sumBy (fun x -> x.c.Length)
103+
let totalEvents = spans |> Array.sumBy _.c.Length
104104
let totalStreams = spans |> AppendsEpoch.flatten |> Seq.length
105105
log.Information("Epoch {epochId} {totalE} events {totalS} streams ({spans} spans, {batches} batches, {k:n3} MiB) {loadS:n1}s",
106106
string epochId, totalEvents, totalStreams, spans.Length, state.changes.Length, Log.miB sizeB, loadS)

src/Propulsion.EventStoreDb/EventStoreSource.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module private Impl =
1616
let readBatch withData batchSize streamFilter (store: EventStoreClient) pos ct = task {
1717
let pos = let p = pos |> Propulsion.Feed.Position.toInt64 |> uint64 in Position(p, p)
1818
let res = store.ReadAllAsync(Direction.Forwards, pos, batchSize, withData, cancellationToken = ct)
19-
let! batch = res |> TaskSeq.map (fun e -> e.Event) |> TaskSeq.toArrayAsync
19+
let! batch = res |> TaskSeq.map _.Event |> TaskSeq.toArrayAsync
2020
return ({ checkpoint = checkpointPos batch; items = toItems streamFilter batch; isTail = batch.LongLength <> batchSize }: Propulsion.Feed.Core.Batch<_>) }
2121

2222
// @scarvel8: event_global_position = 256 x 1024 x 1024 x chunk_number + chunk_header_size (128) + event_position_offset_in_chunk

src/Propulsion.MemoryStore/MemoryStoreLogger.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let renderSubmit (log: Serilog.ILogger) struct (epoch, categoryName, streamId, e
1919
if (not << log.IsEnabled) Serilog.Events.LogEventLevel.Debug then log
2020
elif typedefof<'F> <> typeof<ReadOnlyMemory<byte>> then log
2121
else log |> propEventJsonUtf8 "Json" (unbox events)
22-
let types = events |> Seq.map (fun e -> e.EventType)
22+
let types = events |> Seq.map (fun x -> x.EventType)
2323
log.ForContext("types", types).Debug("Submit #{epoch} {categoryName}-{streamId}x{count}", epoch, categoryName, streamId, events.Length)
2424
elif log.IsEnabled Serilog.Events.LogEventLevel.Debug then
2525
let types = seq { for e in events -> e.EventType } |> Seq.truncate 5

0 commit comments

Comments
 (0)