-
Notifications
You must be signed in to change notification settings - Fork 20
sherpa without sherpa. #94
base: master
Are you sure you want to change the base?
Conversation
httpfront/httpfront.go
Outdated
| if err != nil { | ||
| return nil, err | ||
| } | ||
| fmt.Printf("lookup: %v\n", lr); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/getUpdate/GetUpdate?
proto/AuthorizationPolicypr_test.go
Outdated
| 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" |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
skip tests that invole GoString() and String() because non deterministic iteration of map.
| // 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"` |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
proto/generate.sh
Outdated
| 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 |
There was a problem hiding this comment.
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?
proto/replication.proto
Outdated
|
|
||
| message EpochUpdate { | ||
| EpochDelimiter delimiter = 1; | ||
| bool update = 2; |
There was a problem hiding this comment.
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?
proto/replication.proto
Outdated
| message EpochUpdate { | ||
| EpochDelimiter delimiter = 1; | ||
| bool update = 2; | ||
| fixed64 UID = 3; |
There was a problem hiding this comment.
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?
skip the timestamp test.
fix the commitment bug.
…ishiguro-sherpa
No description provided.