We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 197466d commit 62abebeCopy full SHA for 62abebe
client/client.go
@@ -112,7 +112,6 @@ func (c *CfClient) start() {
112
go c.initAuthentication(ctx)
113
go c.setAnalyticsServiceClient(ctx)
114
go c.pullCronJob(ctx)
115
- go c.pullCronJob(ctx)
116
}
117
118
// PostEvaluateProcessor push the data to the analytics service
@@ -394,6 +393,8 @@ func (c *CfClient) retrieveSegments(ctx context.Context) error {
394
393
func (c *CfClient) setAnalyticsServiceClient(ctx context.Context) {
395
396
<-c.authenticated
+ c.mux.RLock()
397
+ defer c.mux.RUnlock()
398
if !c.config.enableAnalytics {
399
log.Println(time.Now().Format("2006-01-02 15:04:05") + " Posting analytics data disabled.")
400
return
0 commit comments