Skip to content

Conversation

@wenyingd
Copy link

@wenyingd wenyingd commented Dec 1, 2022

  1. Bump up golangci-bin version to v1.50.0
  2. Remove invalid configurations in golangci.yml
  3. Formated several files
  4. Removed unused code which is for padding messages

Signed-off-by: wenyingd [email protected]

@wenyingd wenyingd requested a review from antoninbas December 1, 2022 09:29
@wenyingd
Copy link
Author

wenyingd commented Dec 1, 2022

@antoninbas We found that golangci-bin v1.41.1 may introduce unexpected golint validation failures ( #31 ), so I make this patch to bump up its version to v1.50.0 which is used in antrea. Could you help review it?

antoninbas
antoninbas previously approved these changes Dec 2, 2022
@wenyingd wenyingd force-pushed the bumpup_golangci branch 3 times, most recently from 78eebd8 to a7a2dc5 Compare December 2, 2022 01:36
@wenyingd
Copy link
Author

wenyingd commented Dec 2, 2022

Hi @antoninbas , I updated the patch to remove unused code ( all for padding messages), would you help review it again?

ActionHeader
MplsTtl uint8
pad []byte // 3bytes
// 3 bytes for padding

Choose a reason for hiding this comment

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

isn't this comment a bit confusing here, since there is nothing in the struct enforcing that padding?

Copy link
Author

@wenyingd wenyingd Dec 2, 2022

Choose a reason for hiding this comment

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

I left this comment because the existing code does not provide the necessary implementations of a util.Message, so I want to leave some messages to avoid unexpected mistakes of misunderstanding when implementing the functions in future. In my latest change I add the required implementations, and removed this comment.

ActionHeader
NwTtl uint8
pad []byte // 3bytes
// 3 bytes for padding

Choose a reason for hiding this comment

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

ditto

Copy link
Author

Choose a reason for hiding this comment

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

updated.

ActionHeader
MplsTtl uint8
pad []byte // 3bytes
// 3 bytes for padding

Choose a reason for hiding this comment

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

ditto, and same for other places below

Copy link
Author

Choose a reason for hiding this comment

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

updated.

1. Bump up golangci-bin version to v1.50.0
2. Remove invalid configurations in golangci.yml
3. Formated several files
4. Removed unused code which is for padding messages

Signed-off-by: wenyingd <[email protected]>
@wenyingd wenyingd merged commit 22a944c into antrea-io:main Dec 2, 2022
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.

2 participants