diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java index 5d73dea..4f10ab7 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java @@ -72,19 +72,6 @@ private void updateRedpacketStatusByChainId(String chainId) throws IOException { JsonArray lastupdatesArray = data.getAsJsonArray("lastupdates"); log.debug("lastupdatesArray" + lastupdatesArray.toString()); - // todo -// if(lastupdatesArray.size() != 0){ -// String lastTimestampFromGraph = lastupdatesArray.get(0).getAsJsonObject().get("lastupdateTimestamp").getAsString(); -// -// if(Objects.equals(lastTimestampFromGraph, lastUpdateTimestampMap.get(chainId))){ -// log.debug("chainId "+ chainId + "no event update"); -// return ; -// } else { -// lastUpdateTimestampMap.put( chainId, lastTimestampFromGraph); -// log.debug("chainId "+ chainId + "set new event update: "+ lastTimestampFromGraph ); -// } -// } - List redPacketList = redPacketRepository.findUnfinishedRedpacketByChainId(chainId); for (int i = 0; i < redpacketsArray.size(); i++) { @@ -145,7 +132,7 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException { switch (chainId) { case Constants.CHAIN_ID_OP: // op request = new HttpPost( - "http://production_site:8300/subgraphs/name/redpacket_optimism"); + "http://103.99.179.200:8300/subgraphs/name/redpacket_optimism"); break; // case Constants.CHAIN_ID_SEPOLIA: //sepolia // request = new HttpPost( @@ -157,7 +144,7 @@ private HttpEntity getHttpEntityFromChain(String chainId) throws IOException { // break; case Constants.CHAIN_ID_ARBITRUM: //arbitrum request = new HttpPost( - "http://production_site:8400/subgraphs/name/redpacket_arbitrum"); + "http://103.99.179.200:8400/subgraphs/name/redpacket_arbitrum"); break; // case Constants.CHAIN_ID_ZKSYNC: //zksync // request = new HttpPost(