Skip to content

Commit 7ef3170

Browse files
authored
Update README.md
1 parent 84591fd commit 7ef3170

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ Minimal example using the default `EncodedFormat` (Base62 + PackedFormat):
6666
@Serializable
6767
data class Payload(
6868
@VarUInt
69-
val id: ULong, // varint
69+
val id: ULong, // varint
7070

7171
@VarInt
72-
val delta: Int, // zig-zag + varint
72+
val delta: Int, // zig-zag + varint
7373

74-
val urgent: Boolean, // joined to bitset
74+
val urgent: Boolean, // joined to bitset
7575
val sensitive: Boolean,
7676
val external: Boolean,
77-
val handledAt: Instant?, // nullable, tracked via bitmask
77+
val handled: Instant?, // nullable, tracked via bitset
7878

79-
val type: PayloadType // enum, encoded as varuint ordinal
79+
val type: PayloadType // encoded as varint
8080
)
8181

8282
enum class PayloadType { TYPE1, TYPE2, TYPE3 }
@@ -87,7 +87,7 @@ val payload = Payload(
8787
urgent = true,
8888
sensitive = false,
8989
external = true,
90-
handledAt = null,
90+
handled = null,
9191
type = PayloadType.TYPE1
9292
)
9393

0 commit comments

Comments
 (0)