File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ void AdnlPeerPairImpl::receive_packet_checked(AdnlPacket packet) {
147147 return ;
148148 }
149149 if (packet.seqno () > 0 ) {
150- if (received_packet (static_cast <td::uint32>( packet.seqno () ))) {
150+ if (received_packet (packet.seqno ())) {
151151 VLOG (ADNL_INFO) << this << " : dropping IN message: old seqno: " << packet.seqno () << " (current max " << in_seqno_
152152 << " )" ;
153153 return ;
@@ -165,7 +165,7 @@ void AdnlPeerPairImpl::receive_packet_checked(AdnlPacket packet) {
165165 // delivering
166166
167167 if (packet.seqno () > 0 ) {
168- add_received_packet (static_cast <td::uint32>( packet.seqno () ));
168+ add_received_packet (packet.seqno ());
169169 }
170170
171171 if (packet.confirm_seqno () > ack_seqno_) {
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class AdnlPeerPairImpl : public AdnlPeerPair {
123123 td::Result<td::actor::ActorId<AdnlNetworkConnection>> get_conn ();
124124 void create_channel (pubkeys::Ed25519 pub, td::uint32 date);
125125
126- bool received_packet (td::uint32 seqno) const {
126+ bool received_packet (td::uint64 seqno) const {
127127 CHECK (seqno > 0 );
128128 if (seqno + 64 <= in_seqno_) {
129129 return true ;
@@ -134,7 +134,7 @@ class AdnlPeerPairImpl : public AdnlPeerPair {
134134 return recv_seqno_mask_ & (1ull << (in_seqno_ - seqno));
135135 }
136136
137- void add_received_packet (td::uint32 seqno) {
137+ void add_received_packet (td::uint64 seqno) {
138138 CHECK (!received_packet (seqno));
139139 if (seqno <= in_seqno_) {
140140 recv_seqno_mask_ |= (1ull << (in_seqno_ - seqno));
You can’t perform that action at this time.
0 commit comments