File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,21 @@ export class Heart {
27
27
28
28
logger . trace ( "heartbeat" )
29
29
fs . writeFile ( this . heartbeatPath , "" ) . catch ( ( error ) => {
30
- logger . warn ( error . message )
30
+ logger . warn ( error . message ) // TODO @jsjoeio - write code for this line
31
31
} )
32
32
this . lastHeartbeat = Date . now ( )
33
33
if ( typeof this . heartbeatTimer !== "undefined" ) {
34
- clearTimeout ( this . heartbeatTimer )
34
+ clearTimeout ( this . heartbeatTimer ) // TODO @jsjoeio - write code for this line
35
35
}
36
36
this . heartbeatTimer = setTimeout ( ( ) => {
37
- this . isActive ( )
37
+ this . isActive ( ) // TODO @jsjoeio - start write code for here.
38
38
. then ( ( active ) => {
39
39
if ( active ) {
40
40
this . beat ( )
41
41
}
42
42
} )
43
43
. catch ( ( error ) => {
44
- logger . warn ( error . message )
44
+ logger . warn ( error . message ) // TODO @jsjoeio - end.
45
45
} )
46
46
} , this . heartbeatInterval )
47
47
}
You can’t perform that action at this time.
0 commit comments