Make setter names more consistent #76

Merged
fyrchik merged 1 commit from fyrchik/frostfs-api-go:fix-setter-names into master 2024-05-03 13:42:19 +00:00
Owner

This will make the transition to a new codegen more seamless.

  1. Setter should be named as the field itself.
  2. Setter should accept 1 parameter.
This will make the transition to a new codegen more seamless. 1. Setter should be named as the field itself. 2. Setter should accept 1 parameter.
fyrchik force-pushed fix-setter-names from caa35d1dc6 to b9790e6f67 2024-04-26 10:07:22 +00:00 Compare
fyrchik requested review from storage-core-committers 2024-04-26 10:18:12 +00:00
fyrchik requested review from storage-core-developers 2024-04-26 10:18:12 +00:00
acid-ant approved these changes 2024-04-26 19:24:28 +00:00
fyrchik added the
internal
label 2024-04-27 06:55:09 +00:00
Author
Owner

Only rebase.

Only rebase.
fyrchik force-pushed fix-setter-names from b9790e6f67 to 9ffc947f60 2024-05-02 11:57:33 +00:00 Compare
acid-ant reviewed 2024-05-02 12:14:25 +00:00
@ -282,8 +282,8 @@ func (m *HeadResponse_Body) SetSplitInfo(v *SplitInfo) {
}
}
// SetECInfo sets meta info about the erasure coded object.
Member

Looks like func (m *GetRangeResponse_Body) SetECInfo(v *ECInfo) {..} also needs to refactor.

Looks like `func (m *GetRangeResponse_Body) SetECInfo(v *ECInfo) {..}` also needs to refactor.
Author
Owner

Fixed.
Strange, I have first rebased #77 on top of this and got no errors.

Fixed. Strange, I have first rebased #77 on top of this and got no errors.
acid-ant reviewed 2024-05-02 12:15:39 +00:00
@ -1486,7 +1486,7 @@ func (r *HeadResponseBody) ToGRPCMessage() grpc.Message {
case *SplitInfo:
m.SetSplitInfo(v.ToGRPCMessage().(*object.SplitInfo))
case *ECInfo:
Member

The same changes required for func (r *GetRangeResponseBody) ToGRPCMessage() grpc.Message {...}?

The same changes required for `func (r *GetRangeResponseBody) ToGRPCMessage() grpc.Message {...}`?
Author
Owner

Fixed

Fixed
fyrchik force-pushed fix-setter-names from 9ffc947f60 to 0219fb0881 2024-05-03 05:34:16 +00:00 Compare
fyrchik force-pushed fix-setter-names from 0219fb0881 to 0fe6b9adbb 2024-05-03 05:52:14 +00:00 Compare
fyrchik merged commit 0fe6b9adbb into master 2024-05-03 13:42:19 +00:00
fyrchik deleted branch fix-setter-names 2024-05-03 13:42:19 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-api-go#76
No description provided.