@@ -59,20 +59,27 @@ def __init__(self,
59
59
"""
60
60
:param kwargs: This kwargs argument is not used in __init__. This will be removed in the next major version.
61
61
"""
62
- super (FluentSender , self ).__init__ (tag = tag , host = host , port = port , bufmax = bufmax , timeout = timeout ,
63
- verbose = verbose , buffer_overflow_handler = buffer_overflow_handler ,
64
- nanosecond_precision = nanosecond_precision ,
65
- msgpack_kwargs = msgpack_kwargs ,
66
- ** kwargs )
62
+ super (FluentSender , self ).__init__ (
63
+ tag = tag ,
64
+ host = host ,
65
+ port = port ,
66
+ bufmax = bufmax ,
67
+ timeout = timeout ,
68
+ verbose = verbose ,
69
+ buffer_overflow_handler = buffer_overflow_handler ,
70
+ nanosecond_precision = nanosecond_precision ,
71
+ msgpack_kwargs = msgpack_kwargs ,
72
+ ** kwargs )
67
73
self ._queue_maxsize = queue_maxsize
68
74
self ._queue_circular = queue_circular
69
75
70
- self ._thread_guard = threading .Event () # This ensures visibility across all variables
76
+ self ._thread_guard = threading .Event (
77
+ ) # This ensures visibility across all variables
71
78
self ._closed = False
72
79
73
80
self ._queue = Queue (maxsize = queue_maxsize )
74
- self ._send_thread = threading .Thread (target = self . _send_loop ,
75
- name = "AsyncFluentSender %d" % id (self ))
81
+ self ._send_thread = threading .Thread (
82
+ target = self . _send_loop , name = "AsyncFluentSender %d" % id (self ))
76
83
self ._send_thread .daemon = True
77
84
self ._send_thread .start ()
78
85
@@ -114,8 +121,8 @@ def _send(self, bytes_):
114
121
pass
115
122
try :
116
123
self ._queue .put (bytes_ , block = (not self ._queue_circular ))
117
- except Full : # pragma: no cover
118
- return False # this actually can't happen
124
+ except Full : # pragma: no cover
125
+ return False # this actually can't happen
119
126
120
127
return True
121
128
0 commit comments