diff options
author | vnugent <public@vaughnnugent.com> | 2024-05-12 16:55:32 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-05-12 16:55:32 -0400 |
commit | 4035c838c1508af0aa7e767a97431a692958ce1c (patch) | |
tree | 9c8f719db15364296fb9b18cbe559a001d925d73 /lib/Net.Transport.SimpleTCP | |
parent | f4f0d4f74250257991c57bfae74c4852c7e1ae46 (diff) |
perf: Utils + http perf mods
Diffstat (limited to 'lib/Net.Transport.SimpleTCP')
-rw-r--r-- | lib/Net.Transport.SimpleTCP/src/SocketPipeLineWorker.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/Net.Transport.SimpleTCP/src/SocketPipeLineWorker.cs b/lib/Net.Transport.SimpleTCP/src/SocketPipeLineWorker.cs index b6df58c..cb3486f 100644 --- a/lib/Net.Transport.SimpleTCP/src/SocketPipeLineWorker.cs +++ b/lib/Net.Transport.SimpleTCP/src/SocketPipeLineWorker.cs @@ -562,16 +562,10 @@ namespace VNLib.Net.Transport.Tcp void Stop(); } - private readonly struct TpTimerWrapper : INetTimer + private readonly struct TpTimerWrapper(Timer timer, int timeout) : INetTimer { - private readonly Timer _timer; - private readonly int _timeout; - - public TpTimerWrapper(Timer timer, int timeout) - { - _timer = timer; - _timeout = timeout; - } + private readonly Timer _timer = timer; + private readonly int _timeout = timeout; public readonly void Start() => _timer.Restart(_timeout); |