File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ public sealed record PeerConnectionIdentity(
1919/// </summary>
2020public static class PeerIdentityScope
2121{
22- private static readonly AsyncLocal < PeerConnectionIdentity ? > CurrentValue = new ( ) ;
22+ private static readonly AsyncLocal < PeerConnectionIdentity ? > s_currentValue = new ( ) ;
2323
24- public static PeerConnectionIdentity Current => CurrentValue . Value ?? PeerConnectionIdentity . Anonymous ;
24+ public static PeerConnectionIdentity Current => s_currentValue . Value ?? PeerConnectionIdentity . Anonymous ;
2525
2626 public static IDisposable Push ( PeerConnectionIdentity identity )
2727 {
2828 ArgumentNullException . ThrowIfNull ( identity ) ;
29- var previous = CurrentValue . Value ;
30- CurrentValue . Value = identity ;
29+ var previous = s_currentValue . Value ;
30+ s_currentValue . Value = identity ;
3131 return new RestoreScope ( previous ) ;
3232 }
3333
@@ -38,7 +38,7 @@ private sealed class RestoreScope(PeerConnectionIdentity? previous) : IDisposabl
3838 public void Dispose ( )
3939 {
4040 if ( _disposed ) return ;
41- CurrentValue . Value = previous ;
41+ s_currentValue . Value = previous ;
4242 _disposed = true ;
4343 }
4444 }
Original file line number Diff line number Diff line change 33using Apache . Arrow ;
44using QueryFarm . VgiRpc . AccessLog ;
55using QueryFarm . VgiRpc . Errors ;
6- using QueryFarm . VgiRpc . Logging ;
76using QueryFarm . VgiRpc . Identity ;
7+ using QueryFarm . VgiRpc . Logging ;
88using QueryFarm . VgiRpc . Reflection ;
99using QueryFarm . VgiRpc . Shm ;
1010using QueryFarm . VgiRpc . Streaming ;
You can’t perform that action at this time.
0 commit comments