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

docs(plugin): add singleton support async create function #2392

Merged
merged 3 commits into from
Apr 15, 2018

Conversation

dead-horse
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@codecov
Copy link

codecov bot commented Apr 14, 2018

Codecov Report

Merging #2392 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2392      +/-   ##
==========================================
+ Coverage   99.61%   99.64%   +0.02%     
==========================================
  Files          29       29              
  Lines         783      840      +57     
==========================================
+ Hits          780      837      +57     
  Misses          3        3
Impacted Files Coverage Δ
lib/egg.js 100% <0%> (ø) ⬆️

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 3a489b6...bcb2f58. Read the comment docs.

const rows = await client.query('select now() as currentTime;');
const index = count++;
app.coreLogger.info(`[egg-mysql] instance[${index}] status OK, rds currentTime: ${rows[0].currentTime}`);
app.beforeStart(async function startMysql() {
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 Author

Choose a reason for hiding this comment

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

应该是没删干净,我处理一下

@dead-horse
Copy link
Member Author

在看看,没问题合并我发个版本

@popomore popomore merged commit 3d499a9 into master Apr 15, 2018
@popomore popomore deleted the docs-plugin-singleton branch April 15, 2018 15:50
popomore pushed a commit that referenced this pull request Apr 15, 2018
docs(plugin): add singleton support async create function (#2392)
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