Skip to content

Commit e5f2f71

Browse files
committed
Clarified comment about callbacks
1 parent e874feb commit e5f2f71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

snowplow_tracker/consumer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def __init__(self, endpoint, method="http-get", buffer_size=None, on_success=Non
6767
:type method: method
6868
:param buffer_size: The maximum number of queued events before the buffer is flushed. Default is 10.
6969
:type buffer_size: string | None
70-
:param on_success: Callback executed after every request in a flush is successful.
70+
:param on_success: Callback executed after every HTTP request in a flush has status code 200
7171
Gets passed the number of events flushed.
7272
:type on_success: function | None
73-
:param on_failure: Callback executed after not every event in a flush is successful.
73+
:param on_failure: Callback executed if at least one HTTP request in a flush has status code 200
7474
Gets passed two arguments:
7575
1) The number of events which were successfully sent
7676
2) If method is "http-post": The unsent data in string form;

0 commit comments

Comments
 (0)