b7a3e34

Branches > main > b7a3e34 > files / src / net

Add assert data to encode-packet

Grahp, 2026-03-08

Commit: b7a3e34556bb8046558405c0f02c83438e047046
Parent: 52f154f

1 changed file:

src/net/bowmap/packet/client.clj modified (view file)

@@ -99,7 +99,7 @@     on the connection state."   [pk state]   {:pre [(pk/packet? pk)]}-  (let [id (assert! (numeric-id state (::pk/id pk)))+  (let [id (assert! (numeric-id state (::pk/id pk)) {:pk pk :state state})         encoder (assert! (packet-encoder pk))         data-buf (-> (Unpooled/buffer)                      (write/write-varint! id)