Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Conversation

@juanjux
Copy link
Contributor

@juanjux juanjux commented Jul 12, 2017

No description provided.

@juanjux juanjux requested a review from abeaumont July 12, 2017 10:14
format_ = 'msgpack'
else:
format_ = 'json'
format_ = 'json'
Copy link
Contributor

Choose a reason for hiding this comment

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

In line 52 format is used instead of format_, should they be the same?

Copy link
Contributor Author

@juanjux juanjux Jul 12, 2017

Choose a reason for hiding this comment

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

Oh yes, that's a bug (twice actually, it's also used as format in the other exception message), fixed, thanks.

format_ = 'json'
format_ = 'json'

processor, inbuffer = get_processor_instance(format_)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this factory method (and the whole processor, its config, etc.) needed anymore? I'd remove it if not (it can always be restored in the future if needed again), but as you prefer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smola requested some time ago that the json processor would be injected as a dependency trough I'm personally more of the YAGNI approach to these things but for the moment I would prefer to leave it that way.

@juanjux juanjux merged commit 8dfe832 into bblfsh:master Jul 12, 2017
@juanjux juanjux deleted the feature/remove_msgpack branch July 12, 2017 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants