b7a3e34
Branches > client-handling-rewrite > b7a3e34 > files / src / net / bowmap / core.clj
Add assert data to encode-packet
Commit: b7a3e34556bb8046558405c0f02c83438e047046
Parent: 52f154f
1 changed file:
src/net/bowmap/packet/client.clj 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)