Skip to content

Commit

Permalink
add comment explaining why we're setting conf.NumDVs in splitkeys flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gsora committed Jul 21, 2023
1 parent 1bdead6 commit bfbcfa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/createcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func runCreateCluster(ctx context.Context, w io.Writer, conf clusterConfig) erro

var secrets []tbls.PrivateKey

// If we're splitting keys, read them from SplitKeysDir and set conf.NumDVs to the amount of
// secrets we read.
// If SplitKeys wasn't set, we wouldn't have reached this part of code because validateCreateConfig()
// would've already errored.
if conf.SplitKeys {
secrets, err = getKeys(conf.SplitKeysDir)
if err != nil {
Expand Down

0 comments on commit bfbcfa3

Please sign in to comment.