t-mw / gw2-arbitrage

Finds items in Guild Wars 2 that can be sold on the trading post for a higher price than the cost of crafting the item.
28 stars 5 forks source link

feat: cache custom recipes #16

Closed Iiridayn closed 3 years ago

Iiridayn commented 3 years ago

Refs #7

The code is mostly copy-pastaed from src/request.rs, with a bit moved from src/main.rs. Tested, working on my machine.

As an added bonus, it only throws out those warnings about Mystic Clovers and whatnot when refreshing the cache, as they aren't mapped into the file which is cached.