style: improve code of http client init

This commit is contained in:
Mmx
2024-10-12 17:07:00 +08:00
parent 0110a553da
commit 5b673af27b
4 changed files with 40 additions and 51 deletions

View File

@@ -104,7 +104,7 @@ func doLogin(conf LoginSingleConf) error {
logger := conf.Logger
// 登录配置初始化
httpClient := http_client.HttpPackSelect(conf.Eth).Client
httpClient := http_client.ClientSelect(conf.Eth)
srunClient := srun.New(&srun.Conf{
Logger: logger,
Https: config.Settings.Basic.Https,