-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Replace int64 durations with durationpb in proto files #7097
Milestone
Comments
pgporada
added a commit
that referenced
this issue
Oct 26, 2023
…ation fields (#7115) * Renames all of int64 as a time.Duration fields to `<fieldname>NS` to indicate they are Unix nanoseconds. * Adds new `google.protobuf.Duration` fields to each .proto file where we previously had been using an int64 field to populate a time.Duration. * Updates relevant gRPC messages. Part 1 of 3 for #7097
This was referenced Nov 8, 2023
pgporada
added a commit
that referenced
this issue
Nov 13, 2023
Switch to reading grpc duration values from the new durationpb protofbuf fields, completely ignoring the old int64 fields. Part 2 of 3 for #7097
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #7060
There are int64's masquerading as time.Durations in protobuf files. We can replace those with durationpb instead and do some nice cleanup.
Example of an int64 that could be a durationpb
boulder/sa/proto/sa.proto
Line 180 in 574c5cf
which is used at
boulder/sa/saro.go
Line 522 in 7b3e8df
In that instance,
req.Window
could be no different than1 * time.Hour
.The text was updated successfully, but these errors were encountered: