eventmesh
eventmesh copied to clipboard
[Enhancement] eliminate type assertions in the switch case.[cloudevents.go]
Search before asking
- [X] I had searched in the issues and found no similar issues.
Enhancement Request
This issue is a subproject issue of eventmesh. the subproject address is:
https://github.com/apache/eventmesh-go
located at:
eventmesh-go/plugin/protocol/cloudevents/cloudevents.go
analysis and expalanation:
assigning the result of this type assertion to a variable (switch msg := msg.(type)) could eliminate type assertions in switch cases
Describe the solution you'd like

Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.
If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.