Skip to content

Commit da9e546

Browse files
committed
let sendToConfigHost body use the parameter "env" to keep align with its signature and other methods
1 parent da3326b commit da9e546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/opensolaris/opengrok/index/Indexer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ public void sendToConfigHost(RuntimeEnvironment env, String configHost) {
803803
if (cfg.length == 2) {
804804
try {
805805
InetAddress host = InetAddress.getByName(cfg[0]);
806-
RuntimeEnvironment.getInstance().writeConfiguration(host, Integer.parseInt(cfg[1]));
806+
env.writeConfiguration(host, Integer.parseInt(cfg[1]));
807807
} catch (Exception ex) {
808808
log.log(Level.SEVERE, "Failed to send configuration to " + configHost + " (is web application server running with opengrok deployed?)", ex);
809809
}

0 commit comments

Comments
 (0)