-
Notifications
You must be signed in to change notification settings - Fork 817
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
C++ SDK: Use const-reference in WatchGameServer #941
Comments
@Kuqd / @markmandel - thoughts? |
I've no strong opinions. I basically wrote the C++ SDK as a sacrificial draft. Very happy to defer to opinions that have more C++ experience than me. |
A couple questions:
Depending on the answers to the above, I'd suggest a signature like: grpc::Status SDK::WatchGameServer(
const std::function<void(const agones::dev::sdk::GameServer&)>& callback); |
|
I can't think of any reason you would want to mutate the gameserver |
If there aren't any dissenting opinions by the end of the day tomorrow I'll send a PR to change the function signature. |
From #934:
We should consider changing the function signature of
Since this would be a breaking change to the CPP SDK, I'm marking this for milestone 0.12.0 and we should resolve to do this (or leave it) ASAP.
@devjgm
The text was updated successfully, but these errors were encountered: