Skip to content

Commit

Permalink
temporarily change request id main type to ushort
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Sep 24, 2023
1 parent affa2a3 commit 1a1fd92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import kotlin.random.Random
@Serializable
@JvmInline
value class RequestId(
val int: Int
val uShort: UShort
) {
constructor(int: Int) : this(int.toUShort())
companion object {
fun random() = RequestId(Random.nextInt())
}
Expand Down

0 comments on commit 1a1fd92

Please sign in to comment.