Skip to content

Commit 19e409b

Browse files
committed
Free port auto resolving for TarantoolInspector
Part of #141
1 parent ab579df commit 19e409b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/inspector.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from gevent.server import StreamServer
88

99
from lib.utils import bytes_to_str
10-
from lib.utils import find_port
1110
from lib.utils import prefix_each_line
1211
from lib.utils import str_to_bytes
1312
from lib.colorer import color_stdout
@@ -52,10 +51,6 @@ class TarantoolInspector(StreamServer):
5251
"""
5352

5453
def __init__(self, host, port):
55-
# When specific port range was acquired for current worker, don't allow
56-
# OS set port for us that isn't from specified range.
57-
if port == 0:
58-
port = find_port()
5954
super(TarantoolInspector, self).__init__((host, port))
6055
self.parser = None
6156

0 commit comments

Comments
 (0)