T1ckbase commited on
Commit
d1012ae
·
1 Parent(s): 4142e2d
Files changed (1) hide show
  1. main.ts +10 -10
main.ts CHANGED
@@ -59,13 +59,13 @@ async function main() {
59
  }
60
  }
61
 
62
- // while (true) {
63
- // const SPACE_HOST = Deno.env.get('SPACE_HOST');
64
- // SPACE_HOST && await fetch(`https://${SPACE_HOST}`);
65
- // try {
66
- // await main();
67
- // } catch (e) {
68
- // console.error(e);
69
- // await delay(10000);
70
- // }
71
- // }
 
59
  }
60
  }
61
 
62
+ while (true) {
63
+ const SPACE_HOST = Deno.env.get('SPACE_HOST');
64
+ SPACE_HOST && await fetch(`https://${SPACE_HOST}`);
65
+ try {
66
+ await main();
67
+ } catch (e) {
68
+ console.error(e);
69
+ await delay(10000);
70
+ }
71
+ }