CEC-5344: increase polling (#477)
This commit is contained in:
@@ -211,7 +211,7 @@ export const FleetProvider = ({ children }) => {
|
||||
return vehicle;
|
||||
}));
|
||||
return Promise.resolve();
|
||||
}, 2000);
|
||||
}, 5000);
|
||||
|
||||
const addFleetVehicles = async (name, vehicles, token) => {
|
||||
try {
|
||||
|
||||
@@ -25,7 +25,7 @@ const Component = (props) => {
|
||||
} = useUserContext();
|
||||
const { getConnections, getLocations, getState } = useVehicleContext();
|
||||
|
||||
const REQUEST_INTERVAL = 10000;
|
||||
const REQUEST_INTERVAL = 30000;
|
||||
|
||||
const [center, setCenter] = useState([0, 0]);
|
||||
const [zoom, setZoom] = useState(2);
|
||||
|
||||
Reference in New Issue
Block a user