zk-drizzle commented on code in PR #1211:
URL: https://github.com/apache/rocketmq-clients/pull/1211#discussion_r3007764492
##########
nodejs/examples/Producer.ts:
##########
@@ -15,20 +15,30 @@
* limitations under the License.
*/
-import { Producer } from '..';
+import { Producer } from '../src';
-const producer = new Producer({
- endpoints: '127.0.0.1:8081',
- namespace: ''
-});
-await producer.startup();
+(async () => {
+ const producer = new Producer({
+ endpoints: '127.0.0.1:8080',
+ namespace: '',
+ requestTimeout: 10000, // 设置请求超时时间为 5 秒
Review Comment:
We need to change the \requestTimeout` parameter to 5000 (ms).`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]