Skip to content

Commit 49a6182

Browse files
committed
Fixed parameters' names in function fluent/transport.py:get_connection_params
1 parent 1d3c33b commit 49a6182

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fluent/transport.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def send(self, data):
3535
self._conn.sendall(data)
3636

3737

38-
def get_connection_params(host, port=0):
39-
parsed = urlparse(host)
38+
def get_connection_params(url, port=0):
39+
parsed = urlparse(url)
4040

4141
port = parsed.port or port or 0
4242

@@ -58,8 +58,8 @@ def get_connection_params(host, port=0):
5858

5959
else:
6060
raise TransportError(
61-
"Unknown connection protocol: host={}, port={}".format(
62-
host, port,
61+
"Unknown connection protocol: url={}, port={}".format(
62+
url, port,
6363
)
6464
)
6565

0 commit comments

Comments
 (0)