소스 검색

adding telemetry

afeiszli 3 년 전
부모
커밋
2f12ded906
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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" {