Skip to content

Commit 421a6cc

Browse files
authored
Merge pull request #115 from centuriononon/fix/dc-ids-range
Fix/dc ids range
2 parents 9a28686 + e25c0a3 commit 421a6cc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ _build
1818
rebar3.crashdump
1919
*~
2020
config/prod*
21+
.run

src/mtp_dc_pool.erl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ start_link(DcId) ->
6565
gen_server:start_link({local, dc_to_pool_name(DcId)}, ?MODULE, DcId, []).
6666

6767
valid_dc_id(DcId) ->
68-
is_integer(DcId) andalso
69-
-10 < DcId andalso
70-
10 > DcId.
68+
is_integer(DcId).
7169

7270
dc_to_pool_name(DcId) ->
7371
valid_dc_id(DcId) orelse error(invalid_dc_id, [DcId]),

0 commit comments

Comments
 (0)