Skip to content

Commit 1758e73

Browse files
committed
go fmt
1 parent ea4d066 commit 1758e73

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

config/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ func (c *Config) String() string {
7070
func withoutSensitiveInfo(config *Config) *Config {
7171
const pswPlaceHolder = "XXX"
7272
c := deepcopy.Copy(config).(*Config)
73-
for i, _ := range c.Users {
73+
for i := range c.Users {
7474
c.Users[i].Password = pswPlaceHolder
7575
}
76-
for i, _ := range c.Clusters {
76+
for i := range c.Clusters {
7777
if len(c.Clusters[i].KillQueryUser.Name) > 0 {
7878
c.Clusters[i].KillQueryUser.Password = pswPlaceHolder
7979
}
80-
for j, _ := range c.Clusters[i].ClusterUsers {
80+
for j := range c.Clusters[i].ClusterUsers {
8181
c.Clusters[i].ClusterUsers[j].Password = pswPlaceHolder
8282
}
8383
}
@@ -423,6 +423,7 @@ func (u *KillQueryUser) UnmarshalYAML(unmarshal func(interface{}) error) error {
423423
return checkOverflow(u.XXX, "kill_query_user")
424424
}
425425

426+
// HeartBeat - configuration for heartbeat.
426427
type HeartBeat struct {
427428
// Interval is an interval of checking
428429
// all cluster nodes for availability

scope.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (s *scope) String() string {
8484
s.user.name, s.user.queryCounter.load(),
8585
s.clusterUser.name, s.clusterUser.queryCounter.load(),
8686
s.host.addr.Host, s.host.load(),
87-
s.remoteAddr, s.localAddr, time.Since(s.startTime).Nanoseconds() / 1000.0 )
87+
s.remoteAddr, s.localAddr, time.Since(s.startTime).Nanoseconds()/1000.0)
8888
}
8989

9090
func (s *scope) incQueued() error {

0 commit comments

Comments
 (0)