Skip to content

Commit

Permalink
loot tracker: remove unused google http-client dependency
Browse files Browse the repository at this point in the history
This comes via the minio client, which is being removed
  • Loading branch information
Adam- committed Aug 3, 2023
1 parent 7c87f63 commit e16a3cb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
*/
package net.runelite.http.service.loottracker;

import com.google.api.client.http.HttpStatusCodes;
import com.google.gson.Gson;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.runelite.http.api.RuneLiteAPI;
import net.runelite.http.api.loottracker.LootRecord;
import net.runelite.http.service.util.redis.RedisPool;
Expand All @@ -50,10 +47,8 @@ public class LootTrackerController
private RedisPool redisPool;

@RequestMapping(method = RequestMethod.POST)
public void storeLootRecord(HttpServletRequest request, HttpServletResponse response, @RequestBody Collection<LootRecord> records)
public void storeLootRecord(@RequestBody Collection<LootRecord> records)
{
response.setStatus(HttpStatusCodes.STATUS_CODE_OK);

try (Jedis jedis = redisPool.getResource())
{
jedis.publish("drops", GSON.toJson(records));
Expand Down

0 comments on commit e16a3cb

Please sign in to comment.