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

Fix/update json config #659

Merged
merged 4 commits into from Feb 6, 2019
Merged

Fix/update json config #659

merged 4 commits into from Feb 6, 2019

Conversation

lanzafame
Copy link
Contributor

Resolves #658.

jsonConfigs.getSection() returned a value when it needed to
return a pointer to the jsonSection fields inside the struct.

Even though the jsonSection type is a map, therefore on the heap,
returning it as a value (non-pointer) resulted in it being
disassociated with the jsonConfigs overarching struct.

License: MIT
Signed-off-by: Adrian Lanzafame adrianlanzafame92@gmail.com

jsonConfigs.getSection() returned a value when it needed to
return a pointer to the jsonSection fields inside the struct.

Even though the jsonSection type is a map, therefore on the heap,
returning it as a value (non-pointer) resulted in it being
disassociated with the jsonConfigs overarching struct.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
@lanzafame lanzafame added kind/bug A bug in existing code (including security flaws) need/review Needs a review P1 High: Likely tackled by core team if no one steps up labels Feb 6, 2019
@lanzafame lanzafame self-assigned this Feb 6, 2019
@ghost ghost added the status/in-progress In progress label Feb 6, 2019
@lanzafame lanzafame mentioned this pull request Feb 6, 2019
@coveralls
Copy link

coveralls commented Feb 6, 2019

Coverage Status

Coverage decreased (-0.7%) to 65.935% when pulling 789ab57 on fix/update-json-config into 5a7ee1d on master.

Copy link
Collaborator

@hsanjuan hsanjuan left a comment

Choose a reason for hiding this comment

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

shitty bug :(

config/config_test.go Outdated Show resolved Hide resolved
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
Copy link
Collaborator

@hsanjuan hsanjuan left a comment

Choose a reason for hiding this comment

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

small comment, way better like this

config/config_test.go Outdated Show resolved Hide resolved
@hsanjuan
Copy link
Collaborator

hsanjuan commented Feb 6, 2019

I don't know why the docker compose thing is failing but I'll check

@hsanjuan
Copy link
Collaborator

hsanjuan commented Feb 6, 2019

ah @lanzafame , docker compose is probably failing because the container ipfs/ipfs-cluster:latest is broken. Let's ignore this error as it should fix itself once we've merged.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
@ghost ghost assigned hsanjuan Feb 6, 2019
@hsanjuan hsanjuan merged commit 4324889 into master Feb 6, 2019
@ghost ghost removed the status/in-progress In progress label Feb 6, 2019
@hsanjuan hsanjuan deleted the fix/update-json-config branch February 6, 2019 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) need/review Needs a review P1 High: Likely tackled by core team if no one steps up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants