@@ -205,7 +205,7 @@ public WriteResult TryWriteSync(Message message, bool isReplica)
205205 if ( ! IsConnected ) return QueueOrFailMessage ( message ) ;
206206
207207 WriteResult result = WriteResult . WriteFailure ;
208- if ( threadSafePhysicalConnectionAccessor . WorkOnPhysicalWithLock ( physical =>
208+ if ( threadSafePhysicalConnectionAccessor . UsePhysicalWithLock ( physical =>
209209 {
210210 result = WriteMessageTakingWriteLockSync ( physical , message ) ;
211211 LogNonPreferred ( message . Flags , isReplica ) ;
@@ -237,7 +237,7 @@ public ValueTask<WriteResult> TryWriteAsync(Message message, bool isReplica, boo
237237 }
238238
239239 ValueTask < WriteResult > result = new ValueTask < WriteResult > ( WriteResult . Success ) ;
240- if ( threadSafePhysicalConnectionAccessor . WorkOnPhysicalWithLock ( physical =>
240+ if ( threadSafePhysicalConnectionAccessor . UsePhysicalWithLock ( physical =>
241241 {
242242 result = WriteMessageTakingWriteLockAsync ( physical , message , bypassBacklog : bypassBacklog ) ;
243243 LogNonPreferred ( message . Flags , isReplica ) ;
@@ -414,7 +414,7 @@ internal void KeepAlive(bool forceRun = false)
414414 {
415415 msg . SetInternalCall ( ) ;
416416 Multiplexer . Trace ( "Enqueue: " + msg ) ;
417- threadSafePhysicalConnectionAccessor . WorkOnPhysicalWithLock ( physical =>
417+ threadSafePhysicalConnectionAccessor . UsePhysicalWithLock ( physical =>
418418 {
419419 Multiplexer . OnInfoMessage ( $ "heartbeat ({ physical ? . LastWriteSecondsAgo } s >= { ServerEndPoint . WriteEverySeconds } s, { physical ? . GetSentAwaitingResponseCount ( ) } waiting) '{ msg . CommandAndKey } ' on '{ PhysicalName } ' (v{ features . Version } )") ;
420420 physical ? . UpdateLastWriteTime ( ) ; // preemptively
@@ -747,7 +747,7 @@ internal bool TryEnqueue(List<Message> messages, bool isReplica)
747747 return false ;
748748 }
749749
750- return threadSafePhysicalConnectionAccessor . WorkOnPhysicalWithLock ( physical =>
750+ return threadSafePhysicalConnectionAccessor . UsePhysicalWithLock ( physical =>
751751 {
752752 foreach ( var message in messages )
753753 {
@@ -1180,7 +1180,7 @@ private void ProcessBridgeBacklog()
11801180 try
11811181 {
11821182 _backlogStatus = BacklogStatus . WritingMessage ;
1183- threadSafePhysicalConnectionAccessor . WorkOnPhysicalWithLock ( physical =>
1183+ threadSafePhysicalConnectionAccessor . UsePhysicalWithLock ( physical =>
11841184 {
11851185 var result = WriteMessageInsideLock ( physical , message ) ;
11861186 if ( result == WriteResult . Success )
0 commit comments