Skip to content

Commit

Permalink
GossipSnapshotter: move property assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
aarani committed Jun 6, 2023
1 parent b411c7d commit 1fae4e9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DotNetRGS/GossipSnapshotter.fs
Expand Up @@ -1365,10 +1365,11 @@ type GossipSnapshotter
"Snapshot creation took %f seconds to create it"
stopWatch.Elapsed.TotalSeconds)

let batchCommand = batch.CreateBatchCommand()

batchCommand.CommandText <-
"INSERT INTO snapshots(\"referenceDateTime\", \"blob\", \"dayRange\", \"lastSyncTimestamp\") VALUES ($1,$2,$3,$4)"
let batchCommand =
batch.CreateBatchCommand(
CommandText =
"INSERT INTO snapshots(\"referenceDateTime\", \"blob\", \"dayRange\", \"lastSyncTimestamp\") VALUES ($1,$2,$3,$4)"
)

batchCommand.Parameters.Add(
NpgsqlParameter(Value = referenceTimestamp)
Expand Down

0 comments on commit 1fae4e9

Please sign in to comment.