fix: saner defaults
3 second fetch timeout and 200km radius
This commit is contained in:
@@ -21,7 +21,7 @@ const { index, interval, lat, lon, radius, ...elasticsearch } = getopts(process.
|
|||||||
interval: 0,
|
interval: 0,
|
||||||
lat: 33.433638,
|
lat: 33.433638,
|
||||||
lon: -112.008113,
|
lon: -112.008113,
|
||||||
radius: 1000,
|
radius: 200,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
export default axios.create({
|
export default axios.create({
|
||||||
timeout: 5000,
|
timeout: 3000,
|
||||||
responseType: 'json',
|
responseType: 'json',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json; charset=utf-8',
|
'Content-Type': 'application/json; charset=utf-8',
|
||||||
|
|||||||
Reference in New Issue
Block a user