Skip to content

Commit

Permalink
improve acl rpchook readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yuz10 committed May 25, 2021
1 parent f5cdee4 commit a8c5295
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,16 @@ To load this module, just do this

there is an acl hook provided, usage is:
```lua
local aclHook = require("resty.rocketmq.acl_rpchook").new("RocketMQ","123456781")
local accessKey, secretKey = "RocketMQ", "12345678"
local aclHook = require("resty.rocketmq.acl_rpchook").new(accessKey, secretKey)
p:addRPCHook(aclHook)
```

#### produce
`syntax: res, err = p:produce(topic, message, tags, keys, waitStoreMsgOk)`

1. In sync model

In case of success, returns the a table of results.
In case of errors, returns `nil` with a string describing the error.
In case of success, returns the a table of results.
In case of errors, returns `nil` with a string describing the error.


[Back to TOC](#table-of-contents)
Expand Down

0 comments on commit a8c5295

Please sign in to comment.