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 15adf15 commit 060459a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/pkg/dal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func (c *Collector) receiveEach(ctx context.Context, configId int32) error {

func (c *Collector) processIncomingData(ctx context.Context, data aggregator.SubmissionData) {
symbol := c.Symbols[data.GlobalAggregate.ConfigID]
diff := time.Since(data.GlobalAggregate.Timestamp)
diffFromPublish := time.Since(data.PublishTime)
if diffFromPublish >= 1*time.Second || diff >= 1*time.Second {
log.Warn().Dur("dataDiff", diff).Dur("diffFromPublish", diffFromPublish).Str("Symbol", symbol).Str("Player", "DalCollector")
diff := time.Since(data.GlobalAggregate.Timestamp).Seconds()
diffFromPublish := time.Since(data.PublishTime).Seconds()
if diffFromPublish >= 1 || diff >= 1 {
log.Warn().Msgf("dataDiff: %v, diffFromPublish: %v for symbol %s", diff, diffFromPublish, symbol)
}

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

0 comments on commit 060459a

Please sign in to comment.