Skip to content

Commit

Permalink
Fix serialization of created_at for User objects (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszCiesla authored Nov 9, 2023
1 parent 5a81b47 commit 09e4a65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.0.49"
version = "0.0.50"
edition = "2021"
build = "src/build.rs"

Expand Down
2 changes: 1 addition & 1 deletion server/src/binary/mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fn extend_client(client: &Client, bytes: &mut Vec<u8>) {

fn extend_user(user: &User, bytes: &mut Vec<u8>) {
bytes.put_u32_le(user.id);
bytes.put_u64(user.created_at);
bytes.put_u64_le(user.created_at);
bytes.put_u8(user.status.as_code());
bytes.put_u8(user.username.len() as u8);
bytes.extend(user.username.as_bytes());
Expand Down

0 comments on commit 09e4a65

Please sign in to comment.