mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix top/recent peers cache write error.
This commit is contained in:
parent
f93f4c72f7
commit
e33ca9d316
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ QByteArray RecentPeers::serialize() const {
|
||||||
auto stream = Serialize::ByteArrayWriter(size);
|
auto stream = Serialize::ByteArrayWriter(size);
|
||||||
stream
|
stream
|
||||||
<< quint32(AppVersion)
|
<< quint32(AppVersion)
|
||||||
<< quint32(_list.size());
|
<< quint32(count);
|
||||||
for (const auto &peer : list) {
|
for (const auto &peer : list) {
|
||||||
Serialize::writePeer(stream, peer);
|
Serialize::writePeer(stream, peer);
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,7 +264,7 @@ QByteArray TopPeers::serialize() const {
|
||||||
stream
|
stream
|
||||||
<< quint32(AppVersion)
|
<< quint32(AppVersion)
|
||||||
<< quint32(_disabled ? 1 : 0)
|
<< quint32(_disabled ? 1 : 0)
|
||||||
<< quint32(_list.size());
|
<< quint32(count);
|
||||||
for (const auto &top : list) {
|
for (const auto &top : list) {
|
||||||
Serialize::writePeer(stream, top.peer);
|
Serialize::writePeer(stream, top.peer);
|
||||||
stream << SerializeRating(top.rating);
|
stream << SerializeRating(top.rating);
|
||||||
|
|
Loading…
Add table
Reference in a new issue