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 ability for middlewares to overwrite data for Response_VM #111

Merged
merged 1 commit into from
Aug 2, 2018
Merged

Added ability for middlewares to overwrite data for Response_VM #111

merged 1 commit into from
Aug 2, 2018

Conversation

nimashoghi
Copy link
Contributor

@nimashoghi nimashoghi commented Aug 2, 2018

I've been working on a middleware for buffering updates (i.e. no more than 1 update per X seconds) and had no way of merging objects together as the Response_VM middleware wasn't using the updated Data field.

Looking throughout the code for calling the middlewares, I saw that you used ctx.Data sometimes and sometimes not. I'm not sure if the inconsistency was intended or not, but things seem to be working normally from my tests.

@dsuryd dsuryd merged commit e02d068 into dsuryd:master Aug 2, 2018
@dsuryd
Copy link
Owner

dsuryd commented Aug 2, 2018

Looks good; I just wasn't expecting outgoing data to be modified, but apparently you have a use case for it. Thanks!

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