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

EdgeHub: Add option to turn off protocol heads #160

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

varunpuranik
Copy link
Contributor

Add config options to turn off one or more of the protocol heads. This is for customer using only one protocol head, and running on low power devices, so that they can reduce the memory used by EdgeHub.

Copy link
Contributor

@myagley myagley left a comment

Choose a reason for hiding this comment

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

lgtm

var protocolHeads = new List<IProtocolHead>();
if (configuration.GetValue("mqttSettings:enabled", true))
{
protocolHeads.Add(await container.Resolve<Task<MqttProtocolHead>>());
Copy link
Contributor

Choose a reason for hiding this comment

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

This turned out really nice!

@varunpuranik varunpuranik merged commit 7a6419a into master Aug 15, 2018
@varunpuranik varunpuranik deleted the varunpuranik/memfix2 branch August 15, 2018 17:52
@dsajanice
Copy link
Member

Curious - was this the cause of a leak?

@varunpuranik
Copy link
Contributor Author

No, this just let's you run EdgeHub with a smaller memory footprint, something that some of the customers running edge on low power devices might want.

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.

3 participants