Skip to content

Comments

fix: Use None instead of 0 if no compute allocation is specified#601

Merged
dsarlis merged 3 commits intomasterfrom
dimitris/compute-allocation
Apr 29, 2020
Merged

fix: Use None instead of 0 if no compute allocation is specified#601
dsarlis merged 3 commits intomasterfrom
dimitris/compute-allocation

Conversation

@dsarlis
Copy link
Contributor

@dsarlis dsarlis commented Apr 28, 2020

Based on the thread in #596 it was concluded that it's better to use None instead of using some default value for optional arguments to canister install (like compute and memory allocation) on the dfx side. This means that if these arguments are not set explicitly, they will not be included in the request sent to the "system" at all and it's up to the "system" to use the default values for them per public spec.

The current PR makes the change for the compute allocation.

@dsarlis dsarlis requested a review from a team as a code owner April 28, 2020 12:28
@dsarlis dsarlis changed the title Use None instead of 0 if no compute allocation is specified fix: Use None instead of 0 if no compute allocation is specified Apr 28, 2020
@dsarlis dsarlis merged commit 04b449f into master Apr 29, 2020
@lwshang lwshang deleted the dimitris/compute-allocation branch July 29, 2022 19:00
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