Skip to content
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

Set timestamp when decoding message #219

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

eeberhard
Copy link
Member

@eeberhard eeberhard commented Oct 17, 2021

  • Specify nanosecond count since epoch as the integer timestamp
    representation in state.proto

  • Add an explicit duration type of nanoseconds to clproto header

  • Set the timestamp when decoding a message into a State

* Specify nanosecond count since epoch as the integer timestamp
representation in state.proto

* Add an explicit duration type of nanoseconds to clproto header

* Set the timestamp when decoding a message into a State
@eeberhard eeberhard force-pushed the feature/set-timestamp-proto branch from 0cda424 to 3982520 Compare October 17, 2021 22:16
@eeberhard
Copy link
Member Author

I think this should be a part of #218 in order to resolve my old TODO at the same time. While the python test is unsuccessful because of the base branch, the protocol test passes in the CI.

Copy link
Contributor

@buschbapti buschbapti left a comment

Choose a reason for hiding this comment

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

Great! I am glad the #218 helps you there

@eeberhard eeberhard merged commit ea27488 into feature/set-timestamp Oct 18, 2021
@eeberhard eeberhard deleted the feature/set-timestamp-proto branch October 18, 2021 08:11
buschbapti added a commit that referenced this pull request Oct 18, 2021
* feat: add the setter for the state timestamp attribute

* feat: add the python bindings for the set_timestamp function

* fix: update changelog

* fix: correct the binding to the time module

Co-authored-by: domire8 <71256590+domire8@users.noreply.github.com>

* fix: add the `set_timestamp` function in the list of expected functions

* fix: add missing import

* Set timestamp when decoding message (#219)

* Specify nanosecond count since epoch as the integer timestamp
representation in state.proto

* Add an explicit duration type of nanoseconds to clproto header

* Set the timestamp when decoding a message into a State

Co-authored-by: domire8 <71256590+domire8@users.noreply.github.com>
Co-authored-by: Enrico Eberhard <32450951+eeberhard@users.noreply.github.com>
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.

2 participants