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(grpc): GRPCClients.createClient() supports multi services in one .proto file and returns void insted of T #4159

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

waitingsong
Copy link
Member

@waitingsong waitingsong commented Oct 31, 2024

  • feat(grpc): GRPCClients.createClient() supports multi services in one .proto file, and returns void insted of T
  • feat(grpc): param IGRPCClientServiceOptions of createGRPCConsumer() supports optional service property

支持单个 .proto 文件内声明多个 service

@waitingsong waitingsong force-pushed the grpc branch 6 times, most recently from 5114ab2 to 48527dd Compare November 1, 2024 10:38
@czy88840616 czy88840616 changed the base branch from main to refactor_kafka November 2, 2024 16:23
@czy88840616 czy88840616 changed the base branch from refactor_kafka to main November 2, 2024 16:24
@waitingsong
Copy link
Member Author

@czy88840616 测试之前过了,rebase 之后咋依赖出问题了呢: CI

@czy88840616
Copy link
Member

更新下 main

@waitingsong
Copy link
Member Author

waitingsong commented Nov 4, 2024

更新下 main

没搞懂这是啥情况 CI

No address added out of total 1 resolved errors: [listen EADDRINUSE: address already in use 0.0.0.0:6565]

rebase 之前是过了的呀,难道还是

await closeApp(app);

这个相关的?

不知道该咋写了:单开一个 case 报 EADDRINUSE, 写在一个 case 内还是……

@waitingsong waitingsong force-pushed the grpc branch 2 times, most recently from efc672f to b6f1485 Compare November 4, 2024 06:51
@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.14%. Comparing base (a3ca53b) to head (9a2d258).
Report is 450 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4159      +/-   ##
==========================================
+ Coverage   84.55%   85.14%   +0.59%     
==========================================
  Files         491      514      +23     
  Lines       46778    49147    +2369     
  Branches     5601     5717     +116     
==========================================
+ Hits        39551    41848    +2297     
- Misses       7191     7268      +77     
+ Partials       36       31       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@czy88840616
Copy link
Member

看上去还是 grpc 的单测没过

@waitingsong waitingsong force-pushed the grpc branch 3 times, most recently from 569e610 to 404776f Compare November 5, 2024 07:22
@waitingsong waitingsong changed the title feat(grpc): GRPCClients.createClient() supports multi services in one .proto file feat(grpc): GRPCClients.createClient() supports multi services in one .proto file and returns void insted of T Nov 5, 2024
@waitingsong
Copy link
Member Author

@czy88840616 单测过了。不过 GRPCClients.createClient() 返回类型改为了 voidconnectionService 并不能复用,必须每个 service 创建一个。

Copy link
Member

@czy88840616 czy88840616 left a comment

Choose a reason for hiding this comment

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

看上去问题不大,单测最好拷贝一个新的,避免对老的产生影响。

@czy88840616 czy88840616 added this to the v3.19 milestone Nov 6, 2024
@waitingsong
Copy link
Member Author

看上去问题不大,单测最好拷贝一个新的,避免对老的产生影响。

之前新开的 case,结果一堆报错。我拆分下

@czy88840616 czy88840616 added the pr: new feature This PR adds a new API or behavior. label Nov 7, 2024
@waitingsong waitingsong force-pushed the grpc branch 2 times, most recently from b51f8fc to 7127213 Compare November 7, 2024 06:40
@waitingsong
Copy link
Member Author

@czy88840616 终于过了~

@czy88840616 czy88840616 merged commit 2d39d05 into midwayjs:main Nov 8, 2024
7 checks passed
@waitingsong waitingsong deleted the grpc branch November 8, 2024 15:01
czy88840616 pushed a commit that referenced this pull request Dec 15, 2024
… .proto file and returns void insted of T (#4159)

* feat(grpc): GRPCClients.createClient() supports multi services in one .proto file, and returns void insted of T

* feat(grpc): param IGRPCClientServiceOptions of createGRPCConsumer() supports optional service property

* test(grpc): multiple services case

* chore(grpc): lint fix

* test(grpc): update

(cherry picked from commit 2d39d05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: new feature This PR adds a new API or behavior.
Development

Successfully merging this pull request may close these issues.

3 participants