mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 04:33:36 +08:00
remove unnecessary code
This commit is contained in:
parent
3d519fa2a6
commit
a788d9ab53
@ -62,12 +62,6 @@ func (c *Collector) CollectAndSendAsync() {
|
||||
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() {
|
||||
data := c.collectData()
|
||||
c.client.SendTelemetryAsync(data)
|
||||
|
Loading…
Reference in New Issue
Block a user