Skip to content

Commit

Permalink
Use "receive_host" instead of "receiveR_host" for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 23, 2014
1 parent 0ae2267 commit 80be995
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/droonga-http-server-configure
Expand Up @@ -312,7 +312,7 @@ function writeNewConfigs() {
engineConfigs.port = configValues.droongaEnginePort;
engineConfigs.default_dataset = configValues.defaultDataset;
engineConfigs.tag = configValues.tag;
engineConfigs.receiver_host = configValues.receiveHostName;
engineConfigs.receive_host = configValues.receiveHostName;
configs.engine = engineConfigs;

var configYaml = yaml.safeDump(configs);
Expand Down
4 changes: 2 additions & 2 deletions lib/default-configs.js
Expand Up @@ -79,11 +79,11 @@ define(configs, 'engine.host', engineConfigs.host);
define(configs, 'engine.port', engineConfigs.port);
define(configs, 'engine.tag', engineConfigs.tag);
define(configs, 'engine.default_dataset', 'Default');
// We can use the host name of the droonga-engine as the receiver host
// We can use the host name of the droonga-engine as the receive host
// of the http server, because this computer works as a droonga-engine
// node and it is guaranteed that this computer can be accessed with
// the host name.
define(configs, 'engine.receiver_host', engineConfigs.host);
define(configs, 'engine.receive_host', engineConfigs.host);

return configs;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/server-options.js
Expand Up @@ -17,7 +17,7 @@ options.droongaEngineHostName = defaultConfigs.engine.host;
options.droongaEnginePort = defaultConfigs.engine.port;
options.tag = defaultConfigs.engine.tag;
options.defaultDataset = defaultConfigs.engine.default_dataset;
options.receiveHostName = defaultConfigs.engine.receiver_host;
options.receiveHostName = defaultConfigs.engine.receive_host;

function intOption(newValue, oldValue) {
return parseInt(newValue);
Expand Down
2 changes: 1 addition & 1 deletion sample/droonga-http-server.yaml
Expand Up @@ -9,4 +9,4 @@ engine:
port: 10031
default_dataset: Default
tag: droonga
receiver_host: 192.168.0.10
receive_host: 192.168.0.10

0 comments on commit 80be995

Please sign in to comment.