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
7ae13130
Unverified
Commit
7ae13130
authored
Nov 06, 2018
by
Bennett Piater
Browse files
Fix producer's JSON output
parent
6825c406
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sensors/producer/index.js
sensors/producer/index.js
+1
-1
No files found.
sensors/producer/index.js
View file @
7ae13130
...
...
@@ -21,7 +21,7 @@ async function main({id}) {
topic
:
'
mra5q18k-sensors
'
,
messages
:
[{
key
:
null
,
value
:
`{producer:
${
id
}
, timestamp:
${
date
}
, value:
${
value
}
}`
}]
value
:
`{
"
producer
"
:
${
id
}
,
"
timestamp
"
:
${
date
}
,
"
value
"
:
${
value
}
}`
}]
})
await
producer
.
disconnect
()
...
...
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