mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Remove unused uid in pricefeed service
Bisq frequently (once per minute) queries our price nodes for up-to-date price information. It does so by HTTP GET request. However, it provided a UID via the "User-Agent" HTTP header field. This UID has been a random number which changed everytime Bisq got started up. This UID has never been used. Thus, remove it.
This commit is contained in:
parent
cd745717fa
commit
af939e66e0
@ -48,7 +48,7 @@ public class PriceProvider extends HttpClientProvider {
|
||||
public Tuple2<Map<String, Long>, Map<String, MarketPrice>> getAll() throws IOException {
|
||||
Map<String, MarketPrice> marketPriceMap = new HashMap<>();
|
||||
String json = httpClient.requestWithGET("getAllMarketPrices", "User-Agent", "bisq/"
|
||||
+ Version.VERSION + ", uid:" + httpClient.getUid());
|
||||
+ Version.VERSION);
|
||||
|
||||
LinkedTreeMap<?, ?> map = new Gson().fromJson(json, LinkedTreeMap.class);
|
||||
Map<String, Long> tsMap = new HashMap<>();
|
||||
|
Loading…
Reference in New Issue
Block a user