Skip to content

Commit

Permalink
Merge pull request #351 from clarakosi/partition_default
Browse files Browse the repository at this point in the history
Change partition default to null
  • Loading branch information
Pchelolo committed Aug 18, 2020
2 parents ea11766 + b9f57c9 commit cd8f40e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "change-propagation",
"version": "0.10.2",
"version": "0.10.3",
"description": "Listens to events from Kafka and delivers them",
"main": "server.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion sys/kafka.js
Expand Up @@ -58,7 +58,7 @@ class Kafka {
return { status: 202 };
}

const partition = req.params.partition || 0;
const partition = req.params.partition || null;
const messages = req.body;
if (!Array.isArray(messages) || !messages.length) {
throw new HTTPError({
Expand Down
2 changes: 1 addition & 1 deletion test/utils/test_topics
Expand Up @@ -24,7 +24,7 @@ test_dc.mediawiki.page-undelete
test_dc.changeprop.retry.mediawiki.page-undelete
test_dc.mediawiki.revision-visibility-change
test_dc.changeprop.retry.mediawiki.revision-visibility-change
test_dc.change-prop.transcludes.resource-change
test_dc.change-prop.transcludes.resource-change 2
test_dc.changeprop.retry.change-prop.transcludes.resource-change
test_dc.change-prop.backlinks.resource-change
test_dc.changeprop.retry.change-prop.backlinks.resource-change
Expand Down

0 comments on commit cd8f40e

Please sign in to comment.