Skip to content

Commit

Permalink
update redis delay log
Browse files Browse the repository at this point in the history
  • Loading branch information
Intizar-T committed Jul 31, 2024
1 parent 10f2818 commit 3b64a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/pkg/dal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func (c *Collector) processIncomingData(ctx context.Context, data aggregator.Sub
}

diffFromPublish := time.Since(data.PublishTime)
if diffFromPublish > 100*time.Millisecond {
log.Warn().Dur("redisDelay", diffFromPublish).Str("Symbol", symbol).Str("Player", "DalCollector").Msg("redis delay over 100 millisec")
if diffFromPublish > 3*time.Second {
log.Warn().Dur("time between Publish and processIncomingData", diffFromPublish).Str("Symbol", symbol).Str("Player", "DalCollector")
}

result, err := c.IncomingDataToOutgoingData(ctx, data)
Expand Down

0 comments on commit 3b64a35

Please sign in to comment.