chore: linter: embeddedstructfieldcheck

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent df8d8c276e
commit 7c9d06b4d2
36 changed files with 54 additions and 11 deletions
+1
View File
@@ -17,6 +17,7 @@ import (
// A cachedFinder is a Finder with associated cache timeouts.
type cachedFinder struct {
Finder
cacheTime time.Duration
negCacheTime time.Duration
cache *cache
+3 -1
View File
@@ -32,6 +32,8 @@ import (
)
type globalClient struct {
errorHolder
server string
addrList AddressLister
announceClient httpClient
@@ -39,7 +41,6 @@ type globalClient struct {
noAnnounce bool
noLookup bool
evLogger events.Logger
errorHolder
}
type httpClient interface {
@@ -373,6 +374,7 @@ func queryBool(q url.Values, key string) bool {
type idCheckingHTTPClient struct {
httpClient
id protocol.DeviceID
}
+2 -2
View File
@@ -34,6 +34,8 @@ import (
type localClient struct {
*suture.Supervisor
*cache
myID protocol.DeviceID
addrList AddressLister
name string
@@ -43,8 +45,6 @@ type localClient struct {
localBcastStart time.Time
localBcastTick <-chan time.Time
forcedBcastTick chan time.Time
*cache
}
const (
+1
View File
@@ -41,6 +41,7 @@ type Manager interface {
type manager struct {
*suture.Supervisor
myID protocol.DeviceID
cfg config.Wrapper
cert tls.Certificate