Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added starting items to /matches endpoint #2254

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

27bslash
Copy link
Contributor

/**
* A processor to reduce the event stream to only logs we want to persist
* */
function processReduce(entries, meta) {
const result = entries.filter((e) => {
if (e.type === 'DOTA_COMBATLOG_PURCHASE'
if (e.type === 'DOTA_COMBATLOG_PURCHASE' || e.type === 'STARTING_ITEM'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave this out, we don't need this in the pro game logs.

@howardchung
Copy link
Member

This looks generally fine, but we might want to optimize how we store this data, as we'd be storing this x10 players for each match and storage is already the most expensive part of running the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants