From db92c412414c9043e233daf7333f881b5856d340 Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Sat, 3 Oct 2026 20:35:31 +0800 Subject: [PATCH] fix(loadtest): apply direct dial IP assignment --- loadtest/im-pressure/agent.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/loadtest/im-pressure/agent.go b/loadtest/im-pressure/agent.go index 2288053..9e3e09d 100644 --- a/loadtest/im-pressure/agent.go +++ b/loadtest/im-pressure/agent.go @@ -122,9 +122,7 @@ func runAgent(ctx context.Context, cfg *Config, manifest *Manifest, machine, coo if len(accounts) != cfg.UsersPerMachine { return fmt.Errorf("machine %s accounts=%d expected=%d", machine, len(accounts), cfg.UsersPerMachine) } - for i := range accounts { - accounts[i].Endpoint = cfg.Endpoints[machine][(accounts[i].Index-1)%len(cfg.Endpoints[machine])] - } + assignAgentEndpoints(cfg, machine, accounts) if !cfg.SkipP2PPreflight { if err = preflightP2P(ctx, cfg, manifest, accounts, apiKey); err != nil { return err