Skip to content

Commit

Permalink
s/use_unix_socket/socket_path/
Browse files Browse the repository at this point in the history
  • Loading branch information
xvello committed May 17, 2017
1 parent cd77825 commit 344e170
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions datadog/dogstatsd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DogStatsd(object):

def __init__(self, host='localhost', port=8125, max_buffer_size=50, namespace=None,
constant_tags=None, use_ms=False, use_default_route=False,
use_unix_socket=None):
socket_path=None):
"""
Initialize a DogStatsd object.
Expand Down Expand Up @@ -57,14 +57,14 @@ def __init__(self, host='localhost', port=8125, max_buffer_size=50, namespace=No
(Useful when running the client in a container) (Linux only)
:type use_default_route: boolean
:param use_unix_socket: Communicate with dogstatsd through a UNIX socket instead of
:param socket_path: Communicate with dogstatsd through a UNIX socket instead of
UDP. If set, disables UDP transmission (Linux only)
:type use_unix_socket: string
:type socket_path: string
"""

# Connection
if use_unix_socket is not None:
self.socket_path = use_unix_socket
if socket_path is not None:
self.socket_path = socket_path
self.host = None
self.port = None
else:
Expand Down

0 comments on commit 344e170

Please sign in to comment.