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

[Fix]:修复 data race 的问题 #154

Merged
merged 4 commits into from
Dec 10, 2020
Merged

[Fix]:修复 data race 的问题 #154

merged 4 commits into from
Dec 10, 2020

Conversation

zouyx
Copy link
Member

@zouyx zouyx commented Dec 8, 2020

  • 修复 data race 的问题

@zouyx zouyx added the bug label Dec 8, 2020
@mergify
Copy link
Contributor

mergify bot commented Dec 8, 2020

感谢您提出Pull Request,我会尽快Review。我会在1-2日内进行查看或者回复,如果遇到节假日可能会处理较慢,敬请谅解。

@zouyx
Copy link
Member Author

zouyx commented Dec 8, 2020

@Mergifyio rebase

@coveralls
Copy link

coveralls commented Dec 8, 2020

Coverage Status

Coverage increased (+0.3%) to 74.75% when pulling 68a4c3a on hotfix/fixDataRace into ba0d041 on develop.

@zouyx
Copy link
Member Author

zouyx commented Dec 9, 2020

@Mergifyio update

@zouyx zouyx linked an issue Dec 9, 2020 that may be closed by this pull request
@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2020

Command rebase: success

Branch has been successfully rebased

@mergify
Copy link
Contributor

mergify bot commented Dec 9, 2020

Command update: failure

Branch update failed
expected head sha didn’t match current head ref.
err-code: 3B750

}

//SetNextTryConnTime if this connect is fail will set this time
func SetNextTryConnTime(configIp string, nextPeriod int64) {
Copy link

Choose a reason for hiding this comment

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

func parameter configIp should be configIP

//IsConnectDirectly is connect by ip directly
//false : yes
//true : no
func IsConnectDirectly(configIp string) bool {
Copy link

Choose a reason for hiding this comment

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

func parameter configIp should be configIP

}

//SetDownNode 设置失效节点
func SetDownNode(configIp string, host string) {
Copy link

Choose a reason for hiding this comment

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

func parameter configIp should be configIP

return len(s.serverMap)
}

func SetServers(configIp string, serverMap map[string]*config.ServerInfo) {
Copy link

Choose a reason for hiding this comment

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

exported function SetServers should have comment or be unexported
func parameter configIp should be configIP

@zouyx zouyx merged commit e7a134c into develop Dec 10, 2020
@zouyx zouyx added this to the v4.0.3 milestone Dec 10, 2020
zouyx added a commit that referenced this pull request Dec 10, 2020
[Fix]:修复 data race 的问题
@zouyx zouyx deleted the hotfix/fixDataRace branch February 23, 2021 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

concurrent map writes
2 participants