Adding missing default timeout on all axios requests.

fixes #314
This commit is contained in:
softsimon committed 2021-01-30 16:25:22 +07:00
1 parent 371433b2da
commit c94f004425
5 files changed
+21 -14

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ class Bisq {
}
private updatePrice() {
axios.get<BisqTrade[]>('https://bisq.markets/api/trades/?market=bsq_btc')
axios.get<BisqTrade[]>('https://bisq.markets/api/trades/?market=bsq_btc', { timeout: 10000 })
.then((response) => {
const prices: number[] = [];
response.data.forEach((trade) => {