Misc improvements

This commit is contained in:
Him188 2020-03-04 09:01:34 +08:00
parent 45b39e4744
commit a5c3e9f5ba
4 changed files with 4 additions and 6 deletions

View File

@ -12,7 +12,4 @@ coroutinesVersion=1.3.3
atomicFuVersion=0.14.1
coroutinesIoVersion=0.1.16
# utility
ktorVersion=1.3.1
klockVersion=1.7.0
# gradle plugin
protobufJavaVersion=3.10.0
ktorVersion=1.3.1

View File

@ -13,7 +13,7 @@ val atomicFuVersion: String by rootProject.ext
val coroutinesVersion: String by rootProject.ext
val coroutinesIoVersion: String by rootProject.ext
val klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
val serializationVersion: String by rootProject.ext

View File

@ -343,6 +343,7 @@ internal object KnownPacketFactories {
ssoSequenceId: Int,
consumer: PacketConsumer<T>
) {
@Suppress("DuplicatedCode")
check(readByte().toInt() == 2)
this.discardExact(2) // 27 + 2 + body.size
this.discardExact(2) // const, =8001

View File

@ -13,7 +13,7 @@ val atomicFuVersion: String by rootProject.ext
val coroutinesVersion: String by rootProject.ext
val coroutinesIoVersion: String by rootProject.ext
val klockVersion: String by rootProject.ext
val ktorVersion: String by rootProject.ext
val serializationVersion: String by rootProject.ext