Skip to content

Commit 0a74505

Browse files
committed
Review fixes
1 parent 13b550e commit 0a74505

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Pulsar.Client/Api/AutoClusterFailover.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ type AutoClusterFailover
167167
| Some ctx -> do! ctx.UpdateServiceInfo(sec.ServiceInfo)
168168
| None -> ()
169169
| AutoClusterDecision.SwitchToPrimary ->
170-
Log.Logger.LogInformation("Switching back to primary cluster {0}", primary)
170+
Log.Logger.LogInformation("Switching back to primary cluster {0}", primary.ServiceUrl)
171171
currentServiceInfo <- primaryServiceInfo
172172
match context with
173173
| Some ctx -> do! ctx.UpdateServiceInfo(primary)
@@ -201,8 +201,8 @@ type AutoClusterFailover
201201
t.AutoReset <- false
202202
t.Elapsed.Add(fun _ ->
203203
backgroundTask {
204-
do! tick()
205204
if not isDisposed then
205+
do! tick()
206206
try t.Start() with _ -> ()
207207
} |> ignore)
208208
t :> IDisposable

0 commit comments

Comments
 (0)