perf: apply fieldalignement (#1284)

This commit is contained in:
Jason Cameron 2025-11-16 15:43:07 -05:00 committed by GitHub
parent da1890380e
commit 9dd4de6f1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 90 additions and 94 deletions

View file

@ -22,9 +22,10 @@ const (
)
type OGTagCache struct {
cache store.JSON[map[string]string]
targetURL *url.URL
client *http.Client
targetURL *url.URL
client *http.Client
ogOverride map[string]string
cache store.JSON[map[string]string]
// Pre-built strings for optimization
unixPrefix string // "http://unix"
@ -33,7 +34,6 @@ type OGTagCache struct {
ogTimeToLive time.Duration
ogCacheConsiderHost bool
ogPassthrough bool
ogOverride map[string]string
}
func NewOGTagCache(target string, conf config.OpenGraph, backend store.Interface) *OGTagCache {