fix: saner defaults

3 second fetch timeout and 200km radius
This commit is contained in:
2018-11-06 16:11:12 -07:00
parent c4870763a9
commit c5e8b7f178
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
}, },
}); });

View File

@@ -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',