Browse Source

adding telemetry

afeiszli 3 years ago
parent
commit
2f12ded906
2 changed files with 2 additions and 2 deletions
  1. 1 1
      models/structs.go
  2. 1 1
      servercfg/serverconf.go

+ 1 - 1
models/structs.go

@@ -164,7 +164,7 @@ type ServerUpdateData struct {
 	Node        Node `json:"servernode" bson:"servernode"`
 }
 
-// ServerUUID - contains UUID of the server
+// Telemetry - contains UUID of the server and timestamp of last send to posthog
 type Telemetry struct {
 	UUID     string `json:"uuid" bson:"uuid"`
 	LastSend int64  `json:"lastsend" bson:"lastsend"`

+ 1 - 1
servercfg/serverconf.go

@@ -320,7 +320,7 @@ func IsClientMode() string {
 	return isclient
 }
 
-// IsClientMode - checks if it should run in client mode
+// Telemetry - checks if telemetry data should be sent
 func Telemetry() string {
 	telemetry := "on"
 	if os.Getenv("TELEMETRY") == "off" {