-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4412 from esl/mongoose_mam_id
Mongoose mam id rework
- Loading branch information
Showing
4 changed files
with
26 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,9 +25,7 @@ | |
|
||
-module(ejabberd). | ||
-author('[email protected]'). | ||
-export([get_pid_file/0, | ||
get_status_file/0, | ||
get_so_path/0]). | ||
-export([get_pid_file/0, get_status_file/0]). | ||
|
||
-type lang() :: binary(). | ||
|
||
|
@@ -41,20 +39,6 @@ | |
|
||
-export_type([lang/0, xml_stream_item/0]). | ||
|
||
-spec get_so_path() -> binary() | string(). | ||
get_so_path() -> | ||
case os:getenv("EJABBERD_SO_PATH") of | ||
false -> | ||
case code:priv_dir(mongooseim) of | ||
{error, _} -> | ||
"."; | ||
Path -> | ||
filename:join([Path, "lib"]) | ||
end; | ||
Path -> | ||
Path | ||
end. | ||
|
||
-spec get_pid_file() -> 'false' | nonempty_string(). | ||
get_pid_file() -> | ||
case os:getenv("EJABBERD_PID_PATH") of | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters