forked from eclipse-uprotocol/up-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eclipse-uprotocol#122] Make CallOptions immutable
Changed CallOptions struct to only support setting fields by means of constructors, effectively making it immutable. This way we will have better control over which fields may or may not be set for the different types of messages to use the CallOptions for. Also removed the traceparent field because it should not be necessary to explicitly set it. Instead, when a UMessage is created, the current span will be looked up in the current thread/future context.
- Loading branch information
1 parent
7148f78
commit a0cdb95
Showing
2 changed files
with
29 additions
and
107 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