Skip to content

Commit

Permalink
chore: pass data by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 3, 2024
1 parent 1e38f23 commit 35e4d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/dal/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (c *Collector) processIncomingData(ctx context.Context, data aggregator.Sub
defer c.mu.Unlock()
c.LatestData[data.Symbol] = data
}(result)
c.OutgoingStream[data.GlobalAggregate.ConfigID] <- *result
c.OutgoingStream[data.GlobalAggregate.ConfigID] <- result
}

func (c *Collector) IncomingDataToOutgoingData(ctx context.Context, data aggregator.SubmissionData) (*dalcommon.OutgoingSubmissionData, error) {
Expand Down

0 comments on commit 35e4d9d

Please sign in to comment.