You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by sr...@apache.org on 2014/11/12 17:52:39 UTC
[4/6] storm git commit: use java static config name
STORM_LOCAL_HOSTNAME instead of clojure variable
use java static config name STORM_LOCAL_HOSTNAME instead of clojure variable
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b782852c
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b782852c
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b782852c
Branch: refs/heads/master
Commit: b782852c3c8b5771c3ba12dadfc4e8c5e67d12ec
Parents: 46ffd19
Author: Homer Strong <ho...@gmail.com>
Authored: Sat Nov 8 14:19:21 2014 -0800
Committer: Homer Strong <ho...@gmail.com>
Committed: Sat Nov 8 14:19:21 2014 -0800
----------------------------------------------------------------------
storm-core/src/clj/backtype/storm/util.clj | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/b782852c/storm-core/src/clj/backtype/storm/util.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/util.clj b/storm-core/src/clj/backtype/storm/util.clj
index 4dbb101..81c6287 100644
--- a/storm-core/src/clj/backtype/storm/util.clj
+++ b/storm-core/src/clj/backtype/storm/util.clj
@@ -206,11 +206,11 @@
(def memoized-local-hostname (memoize local-hostname))
-;; checks conf for STORM-LOCAL-HOSTNAME.
+;; checks conf for STORM_LOCAL_HOSTNAME.
;; when unconfigured, falls back to (memoized) guess by `local-hostname`.
(defn hostname
[conf]
- (conf STORM-LOCAL-HOSTNAME (memoized-local-hostname)))
+ (conf Config/STORM_LOCAL_HOSTNAME (memoized-local-hostname)))
(letfn [(try-port [port]
(with-open [socket (java.net.ServerSocket. port)]