From 42a4502206fbb3d8c253a158e7b95a6c7089aa17 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Thu, 18 Apr 2024 19:08:47 +0200 Subject: [PATCH] Run gofumpt --- server/certificates/certificates.go | 5 +++-- server/dns/dns.go | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/server/certificates/certificates.go b/server/certificates/certificates.go index b5ea1fd..0ac5152 100644 --- a/server/certificates/certificates.go +++ b/server/certificates/certificates.go @@ -6,11 +6,12 @@ import ( "crypto/x509" "errors" "fmt" - "github.com/hashicorp/golang-lru/v2" "strconv" "strings" "time" + "github.com/hashicorp/golang-lru/v2" + "github.com/go-acme/lego/v4/certcrypto" "github.com/go-acme/lego/v4/certificate" "github.com/go-acme/lego/v4/challenge/tlsalpn01" @@ -34,7 +35,7 @@ func TLSConfig(mainDomainSuffix string, giteaClient *gitea.Client, acmeClient *AcmeClient, firstDefaultBranch string, - challengeCache cache.ICache, canonicalDomainCache cache.ICache, + challengeCache, canonicalDomainCache cache.ICache, certDB database.CertDB, noDNS01 bool, rawDomain string, diff --git a/server/dns/dns.go b/server/dns/dns.go index 09d5e35..60b2147 100644 --- a/server/dns/dns.go +++ b/server/dns/dns.go @@ -1,10 +1,11 @@ package dns import ( - "github.com/hashicorp/golang-lru/v2" "net" "strings" "time" + + "github.com/hashicorp/golang-lru/v2" ) type lookupCacheEntry struct {