Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复mc超时时间未配置时被初始化为100ms的问题 #385

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

parabala
Copy link
Collaborator

@parabala parabala commented Nov 3, 2023

No description provided.

crate::TO_MC_M.to(ns.timeout_ms_master)
} else {
crate::TO_MC_M
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

root cause 是 to 方法没有增加判断? 在to()增加check,是不是更佳

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

确实,已按意见修改

const TO_MC_M: Timeout = Timeout::from_millis(500);
const TO_MC_S: Timeout = Timeout::from_millis(80);
const TO_MC_M: Timeout = Timeout::from_millis(100);
const TO_MC_S: Timeout = Timeout::from_millis(100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加个注释,备注关注点

Copy link
Member

@hustfisher hustfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGFM!

@parabala parabala merged commit a164054 into dev Nov 8, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants