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: add eventbus state check #578

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

feat: add eventbus state check #578

wants to merge 5 commits into from

Conversation

hwjiangkai
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Signed-off-by: jyjiangkai <jyjiangkai@163.com>
@hwjiangkai hwjiangkai changed the title refactor: add eventbus state check feat: add eventbus state check Mar 26, 2023
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
@codecov
Copy link

codecov bot commented Mar 26, 2023

Codecov Report

Merging #578 (d320e63) into main (ee76217) will decrease coverage by 2.50%.
The diff coverage is 50.19%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #578      +/-   ##
==========================================
- Coverage   57.07%   54.57%   -2.50%     
==========================================
  Files         190      211      +21     
  Lines       15191    16977    +1786     
==========================================
+ Hits         8670     9266     +596     
- Misses       5884     7001    +1117     
- Partials      637      710      +73     
Impacted Files Coverage Δ
internal/controller/trigger/storage/storage.go 0.00% <ø> (ø)
internal/gateway/proxy/auth.go 0.00% <ø> (ø)
internal/gateway/proxy/deadletter.go 0.00% <ø> (ø)
internal/gateway/proxy/direct.go 15.84% <ø> (-57.50%) ⬇️
internal/gateway/proxy/proxy.go 23.04% <ø> (-0.05%) ⬇️
internal/gateway/proxy/reigister.go 100.00% <ø> (ø)
internal/gateway/proxy/util.go 0.00% <ø> (ø)
...nternal/primitive/authentication/authentication.go 34.09% <ø> (ø)
internal/primitive/authentication/client.go 0.00% <ø> (ø)
internal/primitive/authorization/action.go 0.00% <ø> (ø)
... and 69 more

... and 56 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@@ -41,7 +41,10 @@ func main() {
if err != nil {
panic("invalid id")
}
bus := c.Eventbus(ctx, api.WithName("quick-start"), api.WithID(eventbusID.Uint64()))
bus, err := c.Eventbus(ctx, api.WithName("quick-start"), api.WithID(eventbusID.Uint64()))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
bus, err := c.Eventbus(ctx, api.WithName("quick-start"), api.WithID(eventbusID.Uint64()))
bus, err := c.Eventbus(ctx, api.WithID(eventbusID.Uint64()))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

modified

client/pkg/eventbus/eventbus.go Show resolved Hide resolved
client/pkg/eventbus/eventbus.go Show resolved Hide resolved
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
Signed-off-by: jyjiangkai <jyjiangkai@163.com>
@ifplusor ifplusor added the co/client relating to eventbus client label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/client relating to eventbus client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants