Skip to content

Commit 46f5205

Browse files
authored
stop ratel from requerying /health every 3 seconds (#360)
1 parent fb2420b commit 46f5205

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

client/src/actions/connection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const SLASH_DOMAINS = [
3838
".app.thegaas.com",
3939
".slash.dgraph.io",
4040
".cloud.dgraph.io",
41+
"hypermode.host",
4142
];
4243

4344
const assert = (test, message = "No message") => {

client/src/components/ServerConnectionModal.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ import ZeroUrlWidget from "./ZeroUrlWidget";
3232

3333
import "./ServerConnectionModal.scss";
3434

35+
const CHECK_HEALTH_INTERVAL = 30000;
36+
3537
export default function ServerConnectionModal() {
3638
const dispatch = useDispatch();
3739
const onHide = () => dispatch(clickSidebarUrl(""));
@@ -61,7 +63,7 @@ export default function ServerConnectionModal() {
6163
return;
6264
}
6365
dispatch(actions.checkHealth({ unknownOnStart: false }));
64-
}, 3000);
66+
}, CHECK_HEALTH_INTERVAL);
6567

6668
const connectTo = url => {
6769
if (!url || !url.trim()) {

0 commit comments

Comments
 (0)