Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
User expired
2018s-advanced-distributed-systems
Commits
c3c6a104
Unverified
Commit
c3c6a104
authored
Nov 26, 2018
by
Bennett Piater
Browse files
disable topic2a
parent
cae03ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
kafka-images/watermark/index.js
kafka-images/watermark/index.js
+2
-1
No files found.
kafka-images/watermark/index.js
View file @
c3c6a104
...
...
@@ -36,7 +36,8 @@ async function processImage(filename, data) {
if
(
err
)
return
;
writeToKafka
(
"
topic2
"
,
filename
+
"
.watermarked.jpg
"
,
JSON
.
stringify
({
data
:
buffer
.
toString
(
"
base64
"
)}));
writeToKafka
(
"
topic2a
"
,
filename
+
"
.watermarked.jpg
"
,
JSON
.
stringify
({
data
:
buffer
.
toString
(
"
base64
"
)}));
// TODO if not all connectec actions are invoked for all triggers, add an additional topic
// writeToKafka("topic2a", filename + ".watermarked.jpg", JSON.stringify({data: buffer.toString("base64")}));
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment