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

proto movement #66692

Closed
wants to merge 1 commit into from
Closed

proto movement #66692

wants to merge 1 commit into from

Conversation

adityamaru
Copy link
Contributor

No description provided.

@adityamaru adityamaru requested a review from irfansharif June 21, 2021 23:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@adityamaru
Copy link
Contributor Author

@irfansharif I'm not sure this is worth the blast radius. I'm still in the process of cleaning it up but wanted to get a CI build in any case.

@@ -73,13 +72,13 @@ type traceLogData struct {
//
// TODO(andrei): this should be unified with
// SessionTracing.generateSessionTraceVTable().
func (r Recording) String() string {
if len(r) == 0 {
func RecordingToString(r *Recording) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

(something I learned recently that you might find useful) PS: it's possible to define (gogoproto.goproto_stringer) = false; on proto types to override .String() with your own.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahhh, I googled for exactly this yesterday and came back empty-handed. Good to know!

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.

3 participants