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

feat(circuit): add circuit breaker #90

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Conversation

cbluebird
Copy link
Collaborator

No description provided.

@cbluebird cbluebird linked an issue Jan 21, 2025 that may be closed by this pull request
main.go Show resolved Hide resolved
main.go Show resolved Hide resolved
Copy link
Collaborator Author

@cbluebird cbluebird left a comment

Choose a reason for hiding this comment

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

没什么问题,我approve不了

}

func (c *CircuitBreaker) Success(api string, loginType funnelApi.LoginType) {
c.LB.Add(api, loginType)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

在添加前判断一下是否存在

main.go Show resolved Hide resolved
@XiMo-210 XiMo-210 merged commit dda2336 into zjutjh:dev Jan 29, 2025
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.

正方服务健康检测
3 participants