morph/event: Remove embedded structs from scriptHashWithValue #1557

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-events into master 2024-12-12 11:55:10 +00:00
Owner

Also, make them public, because otherwise unused linter complains.

pkg/morph/event/utils.go:25:2  unused  field `typ` is unused

This complain is wrong, though: we use typ field because the whole
struct is used as a map key.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Also, make them public, because otherwise `unused` linter complains. ``` pkg/morph/event/utils.go:25:2 unused field `typ` is unused ``` This complain is wrong, though: we _use_ `typ` field because the whole struct is used as a map key. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2024-12-12 06:42:11 +00:00
morph/event: Remove embedded structs from scriptHashWithValue
Some checks failed
Vulncheck / Vulncheck (pull_request) Successful in 3m5s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m17s
Tests and linters / gopls check (pull_request) Successful in 4m44s
Tests and linters / Run gofumpt (pull_request) Successful in 5m53s
DCO action / DCO (pull_request) Failing after 6m19s
Tests and linters / Tests with -race (pull_request) Successful in 8m6s
Build / Build Components (pull_request) Successful in 8m27s
Tests and linters / Tests (pull_request) Successful in 8m43s
Tests and linters / Staticcheck (pull_request) Successful in 8m51s
Tests and linters / Lint (pull_request) Successful in 9m51s
90f99f39d0
Also, make them public, because otherwise `unused` linter complains.
```
pkg/morph/event/utils.go:25:2  unused  field `typ` is unused
```
This complain is wrong, though: we _use_ `typ` field because the whole
struct is used as a map key.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2024-12-12 06:42:11 +00:00
fyrchik requested review from storage-core-developers 2024-12-12 06:42:11 +00:00
fyrchik force-pushed fix-events from 90f99f39d0 to 6f80c82d4d 2024-12-12 06:42:29 +00:00 Compare
aarifullin approved these changes 2024-12-12 10:38:54 +00:00
aarifullin left a comment
Member

Good!

Good!
fyrchik merged commit 7853dbc315 into master 2024-12-12 11:55:09 +00:00
fyrchik deleted branch fix-events 2024-12-12 11:55:11 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-committers
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-node#1557
No description provided.