Skip to content

Instantly share code, notes, and snippets.

@ensonic
Created April 28, 2015 14:12
Show Gist options
  • Save ensonic/bf43f30805b7d240b8e1 to your computer and use it in GitHub Desktop.
Save ensonic/bf43f30805b7d240b8e1 to your computer and use it in GitHub Desktop.
diff --git a/src/noflo-nodejs.coffee b/src/noflo-nodejs.coffee
index 923da82..7fe4019 100644
--- a/src/noflo-nodejs.coffee
+++ b/src/noflo-nodejs.coffee
@@ -60,7 +60,6 @@ require 'coffee-cache' if program.cache
stored = lib.getStored program
baseDir = process.env.PROJECT_HOME or process.cwd()
-interval = 10 * 60 * 1000
if !stored.id
console.error 'No configuration found at ' + lib.getStoredPath() + '. Please run noflo-nodejs-init first if you want the runtime to showup on flowhub.'
if !program.graph
@@ -147,7 +146,7 @@ startServer = (program, defaultGraph) ->
# runtime is still available
setInterval ->
flowhubRuntime.ping()
- , interval
+ , flowhub.Runtime.PING_INTERVAL
return
return
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment