-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_rpc: Temporarily ignore call IDs by default in Java client
- The Java pw_rpc client gained support for call IDs in 15d4ae5. For backwards compatibility, temporarily restore the prior behavior of ignoring call IDs by default. Support using call IDs by creating a client with the new Client.createMultiCall() function. - Rename PendingRpc.DEFAULT_CALL_ID to Endpoint.FIRST_CALL_ID to clarify its meaning. - Move TestClient.java's server packet creation code to Packets.java. Bug: b/389777782 Change-Id: I2e15bdb1cd8a9b3e2463f3a0bb212ba6c5e893d6 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/260273 Commit-Queue: Auto-Submit <[email protected]> Lint: Lint 🤖 <[email protected]> Reviewed-by: Alexei Frolov <[email protected]> Pigweed-Auto-Submit: Wyatt Hepler <[email protected]> Docs-Not-Needed: Wyatt Hepler <[email protected]>
- Loading branch information
Showing
13 changed files
with
231 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2025 The Pigweed Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
// use this file except in compliance with the License. You may obtain a copy of | ||
// the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
// License for the specific language governing permissions and limitations under | ||
// the License. | ||
|
||
package dev.pigweed.pw_rpc; | ||
|
||
/** | ||
* Enum for whether or not call IDs are enabled for the client. | ||
* | ||
* TODO: b/389777782 - Remove this when call IDs are always enabled. | ||
*/ | ||
enum CallIdMode { DISABLED, ENABLED } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.