Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions collector/snapshots_reponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ type SnapshotStatDataResponse struct {

// SnapshotRepositoriesResponse is a representation snapshots repositories
type SnapshotRepositoriesResponse map[string]struct {
Type string `json:"type"`
Settings map[string]string `json:"settings"`
Type string `json:"type"`
Settings map[string]interface{} `json:"settings"`
Copy link
Member

Choose a reason for hiding this comment

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

if we don't use the value of settings anywhere, we could just remove the field 🤔

Copy link
Contributor Author

@bydeath bydeath Jun 18, 2021

Choose a reason for hiding this comment

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

It seems the value of settings is not used now. I tried it worked without Settings field, and it's another way to fix the bug.

}