-
Notifications
You must be signed in to change notification settings - Fork 162
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
colibri: advance request handling #3859
Conversation
da33db4
to
12dec14
Compare
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.
Reviewed 4 of 4 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @juagargi)
go/cs/reservationstore/store.go, line 149 at r1 (raw file):
return nil, serrors.WrapStr("error validating request", err, "id", req.ID) } response, err := s.prepareFailureSegmentResp(&req.Request)
more of a style comment, so feel free to ignore, since it is really subjective.
I would introduce a new line before this line, and one before s.db.BeginTransaction
to group according to logical coherence.
go/cs/reservationstore/store.go, line 180 at r1 (raw file):
"id", req.ID) } var msg base.MessageWithPath
Just do:
if req.IsLastAS() {
return &segment.ResponseIndexConfirmationSuccess{
Response: *morphSegmentResponseToSuccess(response),
}, nil
}
return req, nil
same comment for all other methods where this applies.
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @oncilla)
go/cs/reservationstore/store.go, line 149 at r1 (raw file):
Previously, Oncilla (Dominik Roos) wrote…
more of a style comment, so feel free to ignore, since it is really subjective.
I would introduce a new line before this line, and one before
s.db.BeginTransaction
to group according to logical coherence.
Done.
go/cs/reservationstore/store.go, line 180 at r1 (raw file):
Previously, Oncilla (Dominik Roos) wrote…
Just do:
if req.IsLastAS() { return &segment.ResponseIndexConfirmationSuccess{ Response: *morphSegmentResponseToSuccess(response), }, nil } return req, nilsame comment for all other methods where this applies.
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.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @juagargi and @oncilla)
go/cs/reservationstore/store.go, line 149 at r1 (raw file):
Previously, juagargi (Juan A. Garcia Pardo) wrote…
Done.
It applies to the other methods as well :)
go/cs/reservationstore/store.go, line 180 at r1 (raw file):
Previously, juagargi (Juan A. Garcia Pardo) wrote…
Done.
As mentioned, this applies to the other methods as well
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.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @oncilla)
go/cs/reservationstore/store.go, line 149 at r1 (raw file):
Previously, Oncilla (Dominik Roos) wrote…
It applies to the other methods as well :)
Done. Done. Too much in a hurry 😛
go/cs/reservationstore/store.go, line 180 at r1 (raw file):
Previously, Oncilla (Dominik Roos) wrote…
As mentioned, this applies to the other methods as well
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.
Reviewed 1 of 1 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
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.
Reviewable status: complete! all files reviewed, all discussions resolved
/rebase |
4ca8f25
to
f444dbb
Compare
/rebase |
f444dbb
to
04ad898
Compare
This change is