acme: make fmt

This commit is contained in:
David Cowden 2020-05-20 20:41:07 -07:00
parent 05780554d2
commit 6c39439008
4 changed files with 5 additions and 6 deletions

View file

@ -322,7 +322,7 @@ func (a *Authority) ValidateChallenge(ctx context.Context, accID, chID string, j
case StatusInvalid, StatusValid: case StatusInvalid, StatusValid:
return ch.toACME(ctx, a.dir) return ch.toACME(ctx, a.dir)
default: default:
e:= errors.Errorf("unknown challenge state: %s", ch.getStatus()) e := errors.Errorf("unknown challenge state: %s", ch.getStatus())
return nil, ServerInternalErr(e) return nil, ServerInternalErr(e)
} }
@ -419,7 +419,7 @@ func (a *Authority) RetryChallenge(chID string) {
case StatusProcessing: case StatusProcessing:
break break
default: default:
e:= errors.Errorf("unknown challenge state: %s", ch.getStatus()) e := errors.Errorf("unknown challenge state: %s", ch.getStatus())
log.Printf("%v", e) log.Printf("%v", e)
return return
} }

View file

@ -61,7 +61,6 @@ func WithDatabase(db db.AuthDB) Option {
} }
} }
// WithOrdinal sets the server's ordinal identifier (an int). // WithOrdinal sets the server's ordinal identifier (an int).
func WithOrdinal(ordinal int) Option { func WithOrdinal(ordinal int) Option {
return func(o *options) { return func(o *options) {

View file

@ -35,7 +35,7 @@ intermediate private key.`,
Usage: "address of a DNS resolver to be used instead of the default.", Usage: "address of a DNS resolver to be used instead of the default.",
}, },
cli.IntFlag{ cli.IntFlag{
Name: "ordinal", Name: "ordinal",
Usage: `Unique <index> identifying this instance of step-ca in a highly- Usage: `Unique <index> identifying this instance of step-ca in a highly-
available (replicated) deployment.`, available (replicated) deployment.`,
}, },