mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Core(MtProtoSender): mark immutable fields as readonly
To make sure they are kept immutable when upcoming devs make changes to this file.
This commit is contained in:
parent
e6250b1234
commit
bd7f5f09eb
|
|
@ -18,10 +18,10 @@ namespace TLSharp.Core.Network
|
||||||
{
|
{
|
||||||
//private ulong sessionId = GenerateRandomUlong();
|
//private ulong sessionId = GenerateRandomUlong();
|
||||||
|
|
||||||
private TcpTransport _transport;
|
private readonly TcpTransport _transport;
|
||||||
private Session _session;
|
private readonly Session _session;
|
||||||
|
|
||||||
public List<ulong> needConfirmation = new List<ulong>();
|
public readonly List<ulong> needConfirmation = new List<ulong>();
|
||||||
|
|
||||||
public MtProtoSender(TcpTransport transport, Session session)
|
public MtProtoSender(TcpTransport transport, Session session)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue