Skip to content

Commit

Permalink
检测周期由1秒改为1分钟
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananfa committed May 25, 2022
1 parent a8ffef8 commit 9433faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corpc_pubsub/src/corpc_pubsub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void *PubsubService::subscribeRoutine(void *arg) {
}

while (true) {
int ret = poll(fds, nfds, 1000); // 每秒检测一次
int ret = poll(fds, nfds, 60000); // 每60秒检测一次
if (ret < 0) {
if (errno == EINTR) {
continue;
Expand Down

0 comments on commit 9433faf

Please sign in to comment.