Skip to content

Commit c203399

Browse files
authored
Add missing behaviour to custom-producers guide (#357) (#358)
Closes #357
1 parent 42951d5 commit c203399

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/examples/custom-producers.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ generated by the producer into proper Broadway messages:
3838
defmodule MyBroadway do
3939
use Broadway
4040

41+
@behaviour Broadway.Acknowledger
42+
4143
alias Broadway.Message
4244

4345
def start_link(_opts) do
@@ -65,8 +67,10 @@ generated by the producer into proper Broadway messages:
6567
}
6668
end
6769

70+
@impl Broadway.Acknowledger
6871
def ack(:ack_id, successful, failed) do
6972
# Write ack code here
73+
:ok
7074
end
7175
end
7276

0 commit comments

Comments
 (0)