Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Conversation

@r2ishiguro
Copy link

No description provided.

if err != nil {
return nil, err
}
fmt.Printf("lookup: %v\n", lr);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove this?

lookup.go Outdated
return nil, nil
} else {
if pf.Entry == nil || pf.Profile == nil {
return nil, nil // empty entry or profile
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this return an error?

lookup.go Outdated
return n.value
}

// getUpdate returns the last update to profile of idx during or before epoch.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/getUpdate/GetUpdate?

import (
github_com_gogo_protobuf_jsonpb "github.com/maditya/protobuf/jsonpb"
github_com_gogo_protobuf_proto "github.com/maditya/protobuf/proto"
github_com_gogo_protobuf_jsonpb "github.com/maditya/protobuf/jsonpb"
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this point to gogo/protobuf ?

Copy link
Author

Choose a reason for hiding this comment

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

Can I remove generated files? It's confusing.

// as specified in https://github.com/yahoo/coname/blob/master/proto/client.proto#L63-L89
type lp struct {
Entry string `json:"entry"`
Entry json.RawMessage `json:"entry"`
Copy link
Contributor

Choose a reason for hiding this comment

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

why did we have to change this?

Copy link
Author

Choose a reason for hiding this comment

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

because it's not a struct, not a string.

print($0)
}' < client.pb.go > client.pb.go.tmp && mv client.pb.go.tmp client.pb.go

for i in *.pb.go; do sed "s/\(NewPopulatedEncoded[A-Za-z_0-1]*\)(\(.*\))/\1(\2, easy)/" < $i > $i...; mv -f $i... $i; done
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a comment on what this is trying to do?


message EpochUpdate {
EpochDelimiter delimiter = 1;
bool update = 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a comment on the purpose of this field?

message EpochUpdate {
EpochDelimiter delimiter = 1;
bool update = 2;
fixed64 UID = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a comment on the purpose of this field?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants