mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 09:17:35 +08:00
remove unnecessary code
This commit is contained in:
parent
3d519fa2a6
commit
a788d9ab53
@ -62,12 +62,6 @@ func (c *Collector) CollectAndSendAsync() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only leader master should send telemetry to avoid duplicates
|
|
||||||
if !c.isLeader() {
|
|
||||||
glog.V(2).Infof("Skipping telemetry collection - not the leader master")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
data := c.collectData()
|
data := c.collectData()
|
||||||
c.client.SendTelemetryAsync(data)
|
c.client.SendTelemetryAsync(data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user