[client] Fix macos privacy warning when checking static info (#3496)

avoid checking static info with a init call
This commit is contained in:
Carlos Hernandez
2025-04-25 06:41:57 -06:00
committed by GitHub
parent ef8b8a2891
commit c0eaea938e
5 changed files with 23 additions and 6 deletions

View File

@@ -16,12 +16,6 @@ var (
once sync.Once
)
func init() {
go func() {
_ = updateStaticInfo()
}()
}
func updateStaticInfo() StaticInfo {
once.Do(func() {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)