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: read enableChangesStream when sync changes stream #250

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Jun 24, 2022

No description provided.

@killagu killagu requested review from fengmk2, gemwuu and elrrrrrrr June 24, 2022 07:57
@killagu killagu force-pushed the feat/dynamic_config branch from 3070055 to a72920f Compare June 24, 2022 08:03
@killagu killagu force-pushed the feat/dynamic_config branch from a72920f to fa1ab05 Compare June 24, 2022 08:06
@codecov
Copy link

codecov bot commented Jun 24, 2022

Codecov Report

Merging #250 (fa1ab05) into main (3968cc1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files         119      119           
  Lines        3632     3633    +1     
  Branches      320      321    +1     
=======================================
+ Hits         3529     3530    +1     
  Misses        103      103           
Impacted Files Coverage Δ
app/core/service/ChangesStreamService.ts 84.41% <100.00%> (+0.20%) ⬆️

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 3968cc1...fa1ab05. Read the comment docs.

Copy link
Member

@elrrrrrrr elrrrrrrr left a comment

Choose a reason for hiding this comment

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

+1

@killagu killagu merged commit 0948a71 into main Jun 24, 2022
@killagu killagu deleted the feat/dynamic_config branch June 24, 2022 08:22
@killagu
Copy link
Contributor Author

killagu commented Jun 24, 2022

+ cnpmcore@1.3.0

@@ -62,7 +62,8 @@ export class ChangesStreamService extends AbstractService {
this.logger.warn('[ChangesStreamService.executeTask:firstSeq] GET %s status: %s, data: %j, since: %s',
changesStreamRegistry, status, data, since);
}
while (since) {
// allow disable changesStream dynamic
while (since && this.config.cnpmcore.enableChangesStream) {
Copy link
Member

Choose a reason for hiding this comment

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

配置了 enableChangesStream 为 false 的,都不会调用 executeTask

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