Skip to content

Commit

Permalink
Try to fix linter errors again
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Sep 1, 2023
1 parent 725d77f commit 94286ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions namespace-registry/client_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package nsregistry

import (
"crypto/tls"

"github.com/pkg/errors"

"bufio"
Expand Down Expand Up @@ -118,8 +119,8 @@ func NamespaceRegister(privateKeyPath string, namespaceRegistryEndpoint string,
}

/*
* TODO: For now, we only allow namespace registration to occur with a single key, but
* at some point we should expose an API for adding additional pubkeys to each
* TODO: For now, we only allow namespace registration to occur with a single key, but
* at some point we should expose an API for adding additional pubkeys to each
* namespace. There is a similar TODO listed in registry.go, as the choices made
* there mirror the choices made here.
* To enforce that we're only trying to register one key, we check the length here
Expand All @@ -136,6 +137,7 @@ func NamespaceRegister(privateKeyPath string, namespaceRegistryEndpoint string,
}
log.Debugln("Constructed JWKS from loading public key:", string(jsonbuf))
}

privateKey, err := config.LoadPrivateKey(privateKeyPath)
if err != nil {
return errors.Wrap(err, "Failed to load private key")
Expand Down

0 comments on commit 94286ee

Please sign in to comment.