diff options
author | Jacob Gadikian <jacobgadikian@gmail.com> | 2023-08-08 03:40:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 19:40:31 +0000 |
commit | b32f265ecad60404c3818cc9d42e367a8e4eb7d4 (patch) | |
tree | 16d79c3ad7ddf0cc6f7915d1e47bdd6d269bf8d5 /modules/caddypki/acmeserver | |
parent | 431adc09805972196314b2b188904942cbe5dfee (diff) |
ci: Use gofumpt to format code (#5707)
Diffstat (limited to 'modules/caddypki/acmeserver')
-rw-r--r-- | modules/caddypki/acmeserver/acmeserver.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/caddypki/acmeserver/acmeserver.go b/modules/caddypki/acmeserver/acmeserver.go index 0f739ec..454720b 100644 --- a/modules/caddypki/acmeserver/acmeserver.go +++ b/modules/caddypki/acmeserver/acmeserver.go @@ -239,7 +239,7 @@ func (ash Handler) openDatabase() (*db.AuthDB, error) { dbFolder := filepath.Join(caddy.AppDataDir(), "acme_server", key) dbPath := filepath.Join(dbFolder, "db") - err := os.MkdirAll(dbFolder, 0755) + err := os.MkdirAll(dbFolder, 0o755) if err != nil { return nil, fmt.Errorf("making folder for CA database: %v", err) } @@ -310,8 +310,10 @@ func (c resolverClient) LookupTxt(name string) ([]string, error) { const defaultPathPrefix = "/acme/" -var keyCleaner = regexp.MustCompile(`[^\w.-_]`) -var databasePool = caddy.NewUsagePool() +var ( + keyCleaner = regexp.MustCompile(`[^\w.-_]`) + databasePool = caddy.NewUsagePool() +) type databaseCloser struct { DB *db.AuthDB |