ge: add trade seq number

Occasionally the trades are delivered out of order, this allows us to reassemble them in the correct order
This commit is contained in:
Adam
2020-12-25 19:19:41 -05:00
parent 2c8984e380
commit 9a322c70d0
4 changed files with 10 additions and 0 deletions
@@ -103,6 +103,7 @@ public class GrandExchangeController
trade.setIp(request.getHeader("X-Forwarded-For"));
trade.setUa(request.getHeader("User-Agent"));
trade.setWorldType(grandExchangeTrade.getWorldType());
trade.setSeq(grandExchangeTrade.getSeq());
String json = GSON.toJson(trade);
try (Jedis jedis = redisPool.getResource())
@@ -46,4 +46,5 @@ class Trade
private String ip;
private String ua;
private WorldType worldType;
private int seq;
}