File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ * Added explicit initialization of all fields of the ` endpoint ` structure in ` internal/endpoint/endpoint.go ` , when golangci-lint exhaustruct enabled
2
+
1
3
* Fixed topic writer infinite reconnections in some cases
2
4
* Refactored nil on err ` internal/grpcwrapper/rawydb/issues.go ` , when golangci-lint nilerr enabled
3
5
* Refactored nil on err ` internal/grpcwrapper/rawtopic/describe_topic.go ` , when golangci-lint nilerr enabled
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ func (e *endpoint) Copy() Endpoint {
41
41
defer e .mu .RUnlock ()
42
42
43
43
return & endpoint {
44
+ mu : sync.RWMutex {},
44
45
id : e .id ,
45
46
address : e .address ,
46
47
location : e .location ,
@@ -160,7 +161,13 @@ func withLastUpdated(ts time.Time) Option {
160
161
161
162
func New (address string , opts ... Option ) * endpoint {
162
163
e := & endpoint {
164
+ mu : sync.RWMutex {},
165
+ id : 0 ,
163
166
address : address ,
167
+ location : "" ,
168
+ services : []string {},
169
+ loadFactor : 0 ,
170
+ local : false ,
164
171
lastUpdated : time .Now (),
165
172
}
166
173
for _ , o := range opts {
You can’t perform that action at this time.
0 commit comments