From 4cb806a924e812a4918b4fc685b632ff597adaec Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:11:08 -0800 Subject: [PATCH] Phoenix: implement Market deserialization --- .../main/java/com/mmorrell/phoenix/model/PhoenixMarket.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phoenix/src/main/java/com/mmorrell/phoenix/model/PhoenixMarket.java b/phoenix/src/main/java/com/mmorrell/phoenix/model/PhoenixMarket.java index 016584c..d087761 100644 --- a/phoenix/src/main/java/com/mmorrell/phoenix/model/PhoenixMarket.java +++ b/phoenix/src/main/java/com/mmorrell/phoenix/model/PhoenixMarket.java @@ -10,10 +10,8 @@ import java.util.ArrayList; import java.util.Arrays; -import java.util.HashMap; import java.util.HashSet; import java.util.List; -import java.util.Map; import java.util.Set; @Data @@ -53,8 +51,7 @@ public static PhoenixMarket readPhoenixMarket(byte[] data, PhoenixMarketHeader h int offset = 0; offset += 16; // skip rbtree header - // Skip node allocator size - offset += 8; + offset += 8; // Skip node allocator size int bumpIndex = PhoenixUtil.readInt32(bidBuffer, offset); offset += 4;