Skip to content

Commit

Permalink
Merge pull request #1427 from tulios/delete-topics-timeout-docs
Browse files Browse the repository at this point in the history
Document default topic deletion timeout
  • Loading branch information
Nevon authored Jul 26, 2022
2 parents ff6be44 + 3310227 commit 599198b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ await admin.createTopics({
```javascript
await admin.deleteTopics({
topics: <String[]>,
timeout: <Number>,
timeout: <Number>, // default: 5000
})
```

Expand Down
3 changes: 1 addition & 2 deletions src/broker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ module.exports = class Broker {
* @param {object} request
* @param {string[]} request.topics An array of topics to be deleted
* @param {number} [request.timeout=5000] The time in ms to wait for a topic to be completely deleted on the
* controller node. Values <= 0 will trigger topic deletion and return
* immediately
* controller node.
* @returns {Promise}
*/
async deleteTopics({ topics, timeout = 5000 }) {
Expand Down

0 comments on commit 599198b

Please sign in to comment.