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: singleMode for default, and clusterMode in Egg.js #10

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

gxcsoccer
Copy link
Member

No description provided.

@gxcsoccer gxcsoccer requested a review from fengmk2 March 26, 2019 07:20
@@ -29,6 +29,7 @@ class ZookeeperAPIClient extends APIClientBase {
}
get clusterOptions() {
return {
singleMode: true,
Copy link
Member Author

Choose a reason for hiding this comment

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

默认是单进程,在 Egg.js 里来判断是否开启多进程模式。

因为其实我们对 cluster 模式是有要求的(进程要对等),如果默认多进程模式的话可能会引起一些奇怪的咨询问题

@codecov
Copy link

codecov bot commented Mar 26, 2019

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   94.31%   94.31%           
=======================================
  Files           4        4           
  Lines         264      264           
=======================================
  Hits          249      249           
  Misses         15       15
Impacted Files Coverage Δ
lib/api_client.js 89.79% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62e96b6...714b4a2. Read the comment docs.

@fengmk2
Copy link
Member

fengmk2 commented Mar 26, 2019

@gxcsoccer breaking change 么?

@gxcsoccer
Copy link
Member Author

gxcsoccer commented Mar 26, 2019

@gxcsoccer breaking change 么?

@fengmk2 嗯,算 breaking 了,发大版本吧

@fengmk2
Copy link
Member

fengmk2 commented Mar 26, 2019

@gxcsoccer 好,你直接发 major 吧。

@gxcsoccer gxcsoccer merged commit 4a4b295 into master Mar 26, 2019
@gxcsoccer gxcsoccer deleted the upgrade-cluster-client branch March 26, 2019 14:29
@gxcsoccer
Copy link
Member Author

3.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants