Skip to content

Commit

Permalink
Skip license processing for workers
Browse files Browse the repository at this point in the history
  • Loading branch information
corest committed Apr 17, 2024
1 parent 14d6e4a commit 560b408
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions telemetry.go
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ const (
ENV_TELEMETRY_DISABLED = "TELEMETRY_DISABLED"
ENV_TELEMETRY_INTERVAL_SECONDS = "TELEMETRY_INTERVAL_SECONDS"
DEFAULT_TELEMETRY_INTERVAL_SECONDS = 60
LICENSE_PROCESSOR_SERVICE = "hub"
)

func Start(serviceName string, licenseKeyChan <-chan string) {
@@ -54,6 +55,10 @@ func Start(serviceName string, licenseKeyChan <-chan string) {
ticker := time.NewTicker(time.Second * time.Duration(telemetryIntervalSeconds))
defer ticker.Stop()

if serviceName != LICENSE_PROCESSOR_SERVICE {
return
}

var license string
for {
select {

0 comments on commit 560b408

Please sign in to comment.