mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-02 18:22:40 +01:00
remove features and deployments fields
This commit is contained in:
1 parent
166e36bcd3
commit
1733d0ce68
7 files changed
+87
-167
No files matched your search
@@ -149,14 +149,6 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.Se
|
||||
ms.telemetryCollector.SetVersion(version.VERSION_NUMBER)
|
||||
ms.telemetryCollector.SetOS(runtime.GOOS + "/" + runtime.GOARCH)
|
||||
|
||||
// Determine features and deployment type
|
||||
features := []string{"master"}
|
||||
if len(peers) > 1 {
|
||||
features = append(features, "cluster")
|
||||
}
|
||||
ms.telemetryCollector.SetFeatures(features)
|
||||
ms.telemetryCollector.SetDeployment(telemetry.DetermineDeployment(true, false, len(peers)))
|
||||
|
||||
// Start periodic telemetry collection (every 24 hours)
|
||||
ms.telemetryCollector.StartPeriodicCollection(24 * time.Hour)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user