Skip to content

Commit

Permalink
refactor 'endpoint' struct
Browse files Browse the repository at this point in the history
  • Loading branch information
kozyrev-m committed Feb 6, 2024
1 parent 63e141b commit d6a5b39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Added tags to `endpoint` struct fields in `internal/endpoint/endpoint.go`, when golangci-lint exhaustruct enabled

* Fixed topic writer infinite reconnections in some cases
* Refactored nil on err `internal/grpcwrapper/rawydb/issues.go`, when golangci-lint nilerr enabled
* Refactored nil on err `internal/grpcwrapper/rawtopic/describe_topic.go`, when golangci-lint nilerr enabled
Expand Down
12 changes: 6 additions & 6 deletions internal/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ type Endpoint interface {
}

type endpoint struct {
mu sync.RWMutex
id uint32
mu sync.RWMutex `exhaustruct:"optional"`
id uint32 `exhaustruct:"optional"`
address string
location string
services []string
location string `exhaustruct:"optional"`
services []string `exhaustruct:"optional"`

loadFactor float32
local bool
loadFactor float32 `exhaustruct:"optional"`
local bool `exhaustruct:"optional"`

lastUpdated time.Time
}
Expand Down

0 comments on commit d6a5b39

Please sign in to comment.