You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2019/07/11 14:35:22 UTC

[sling-whiteboard] branch master updated: hardcoding warning

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 7899e53  hardcoding warning
7899e53 is described below

commit 7899e53477f91f08eded375af47b5c3462851a35
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu Jul 11 16:35:19 2019 +0200

    hardcoding warning
---
 graalvm/time-to-first-request/index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/graalvm/time-to-first-request/index.js b/graalvm/time-to-first-request/index.js
index 46022ee..bdcb468 100644
--- a/graalvm/time-to-first-request/index.js
+++ b/graalvm/time-to-first-request/index.js
@@ -20,6 +20,8 @@ const Docker = require('dockerode');
 const waitOn = require('wait-on');
 const elapsedTime = require('elapsed-time')
 
+// A number of things are hardcoded below that you may want to
+// adapt (or make configurable - patches welcome)
 const listenPort = 9000;
 const targetUrl = 'http://127.0.0.1:8080';
 const waitUrl = `${targetUrl}/sling/chouc/route`;
@@ -100,4 +102,4 @@ const cleanup = async () => {
 })
 
 console.log(`listening on port ${listenPort}, proxying to ${targetUrl}`);
-server.listen(listenPort)
\ No newline at end of file
+server.listen(listenPort)