Skip to content

Commit

Permalink
优化消息队列默认超时推送时间
Browse files Browse the repository at this point in the history
  • Loading branch information
duanhf2012 committed Jul 28, 2023
1 parent dd4aaf9 commit dfb6959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysservice/messagequeueservice/CustomerSubscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (cs *CustomerSubscriber) publishToCustomer(topicData []TopicData) bool {
}

//推送数据
err := cs.CallNode(cs.fromNodeId, cs.callBackRpcMethod, &dbQueuePublishReq, &dbQueuePushRes)
err := cs.CallNodeWithTimeout(4*time.Minute,cs.fromNodeId, cs.callBackRpcMethod, &dbQueuePublishReq, &dbQueuePushRes)
if err != nil {
time.Sleep(time.Second * 1)
continue
Expand Down

0 comments on commit dfb6959

Please sign in to comment.