Skip to content

feat: use SingletonProto for egg ctx object#92

Merged
killagu merged 2 commits intomasterfrom
feat/singleton-ctx-object
Feb 9, 2023
Merged

feat: use SingletonProto for egg ctx object#92
killagu merged 2 commits intomasterfrom
feat/singleton-ctx-object

Conversation

@killagu
Copy link
Contributor

@killagu killagu commented Feb 8, 2023

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

@killagu killagu force-pushed the feat/singleton-ctx-object branch from 7ab9eb2 to 687c78d Compare February 8, 2023 16:29
})
@InitTypeQualifier(ObjectInitType.SINGLETON)
private readonly singletonLogger: EggLogger;
private readonly logger: EggLogger;
Copy link
Member

Choose a reason for hiding this comment

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

benchmark 是否要再跑一次?感觉会更快。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

benchmark 里没有注入 egg 的对象,可以加一个。

@killagu killagu merged commit 3385d57 into master Feb 9, 2023
@killagu killagu deleted the feat/singleton-ctx-object branch February 9, 2023 07:58
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.

2 participants