Skip to content

Commit

Permalink
Make ESDB customize signature consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Sep 13, 2023
1 parent 398e278 commit f372bce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Equinox.EventStoreDb/EventStoreDb.fs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ type ConnectionStrategy =
type EventStoreConnector
( reqTimeout: TimeSpan,
[<O; D null>] ?readRetryPolicy, [<O; D null>] ?writeRetryPolicy, [<O; D null>] ?tags,
[<O; D null>] ?customize: EventStoreClientSettings -> unit) =
[<O; D null>] ?customize: Action<EventStoreClientSettings>) =

member _.Connect
( // Name should be sufficient to uniquely identify this connection within a single app instance's logs
Expand All @@ -465,7 +465,7 @@ type EventStoreConnector
let sanitizedName = name.Replace('\'','_').Replace(':','_') // ES internally uses `:` and `'` as separators in log messages and ... people regex logs
settings.ConnectionName <- sanitizedName
match clusterNodePreference with None -> () | Some np -> settings.ConnectivitySettings.NodePreference <- np
match customize with None -> () | Some f -> f settings
match customize with None -> () | Some f -> f.Invoke settings
settings.DefaultDeadline <- reqTimeout
// TODO implement reqRetries
new EventStoreClient(settings)
Expand Down

0 comments on commit f372bce

Please sign in to comment.