CEC-5344: increase polling (#477)

This commit is contained in:
Tristan Timblin
2023-11-01 10:33:32 -07:00
committed by GitHub
parent 5cec00ea6d
commit 470495cfe9
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ export const FleetProvider = ({ children }) => {
return vehicle; return vehicle;
})); }));
return Promise.resolve(); return Promise.resolve();
}, 2000); }, 5000);
const addFleetVehicles = async (name, vehicles, token) => { const addFleetVehicles = async (name, vehicles, token) => {
try { try {

View File

@@ -25,7 +25,7 @@ const Component = (props) => {
} = useUserContext(); } = useUserContext();
const { getConnections, getLocations, getState } = useVehicleContext(); const { getConnections, getLocations, getState } = useVehicleContext();
const REQUEST_INTERVAL = 10000; const REQUEST_INTERVAL = 30000;
const [center, setCenter] = useState([0, 0]); const [center, setCenter] = useState([0, 0]);
const [zoom, setZoom] = useState(2); const [zoom, setZoom] = useState(2);