Skip to content

Commit

Permalink
change updateMetaDataMs int64 field order to prevent panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallace Ricardo committed Sep 14, 2022
1 parent 3083a9b commit 32e6e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ const (
)

type client struct {
updateMetaDataMs int64 // store update metadata time

conf *Config
closer, closed chan none // for shutting down background metadata updater

Expand All @@ -135,7 +137,6 @@ type client struct {

lock sync.RWMutex // protects access to the maps that hold cluster state.

updateMetaDataMs int64 // store update metadata time
}

// NewClient creates a new Client. It connects to one of the given broker addresses
Expand Down

0 comments on commit 32e6e16

Please sign in to comment.