🔨 Make the 'Option' type private and add the 'IOption' type

This commit is contained in:
2024-11-23 17:53:11 +04:00
parent a468f663bf
commit 098c1d8cc4
4 changed files with 35 additions and 27 deletions

View File

@ -47,15 +47,15 @@ func getClients(
}
clients = append(clients, &fasthttp.HostClient{
MaxConns: int(maxConns),
IsTLS: isTLS,
Addr: addr,
Dial: dialFunc,
MaxIdleConnDuration: timeout,
MaxConnDuration: timeout,
WriteTimeout: timeout,
ReadTimeout: timeout,
},
MaxConns: int(maxConns),
IsTLS: isTLS,
Addr: addr,
Dial: dialFunc,
MaxIdleConnDuration: timeout,
MaxConnDuration: timeout,
WriteTimeout: timeout,
ReadTimeout: timeout,
},
)
}
return clients