mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 14:39:58 +02:00
feat(config): initialize agents in parallel, speed up config loading
This commit is contained in:
@@ -181,6 +181,10 @@ func (cfg *AgentConfig) DialContext(ctx context.Context) (net.Conn, error) {
|
||||
return gphttp.DefaultDialer.DialContext(ctx, "tcp", cfg.Addr)
|
||||
}
|
||||
|
||||
func (cfg *AgentConfig) IsInitialized() bool {
|
||||
return cfg.name != ""
|
||||
}
|
||||
|
||||
func (cfg *AgentConfig) Name() string {
|
||||
return cfg.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user