Skip to content

fix: Disallowed async keyword in RPCs #1587

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

Closed
wants to merge 3 commits into from

Conversation

ShadauxCat
Copy link
Collaborator

MTT-1588
fixes #570

Changelog

com.unity.netcode.gameobjects

  • Fixed: Disallowed async keyword in RPCs

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

Copy link
Contributor

@TwoTenPvP TwoTenPvP left a comment

Choose a reason for hiding this comment

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

Looks good! 👌🏻

@TwoTenPvP
Copy link
Contributor

Perhaps a test would be nice? Feels like this check could easily be lost in a future refactor.

@ShadauxCat
Copy link
Collaborator Author

I'm not sure how to write a test for compile failures... since any code that tests it would fail to compile.

@TwoTenPvP
Copy link
Contributor

You could create dyanmically create and compile an assembly and read the compilation outputs. This can be done with the CodeDom compiler.

@ShadauxCat
Copy link
Collaborator Author

Do you have an example you can point to? And, does that run the ILPP step, or do you know how to manually invoke it for the test?

@TwoTenPvP
Copy link
Contributor

Continued on Slack for future reference.

@@ -23,6 +23,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
- Fixed error when serializing ConnectionApprovalMessage with scene management disabled when one or more objects is hidden via the CheckObjectVisibility delegate (#1509)
- Fixed The NetworkConfig's checksum hash includes the NetworkTick so that clients with a different tickrate than the server are identified and not allowed to connect. (#1513)
- Fixed OwnedObjects not being properly modified when using ChangeOwnership. (#1572)
- Disallowed async keyword in RPCs (1587)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
- Disallowed async keyword in RPCs (1587)
- Disallowed async keyword in RPCs (#1587)

Copy link
Contributor

@0xFA11 0xFA11 left a comment

Choose a reason for hiding this comment

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

lgtm

@ShadauxCat
Copy link
Collaborator Author

Reopened as #1681

@ShadauxCat ShadauxCat closed this Feb 11, 2022
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.

async keyword in RPC declaration
3 participants