mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 22:53:52 +00:00
🔨 Make the 'Option' type private and add the 'IOption' type
This commit is contained in:
1 parent
a468f663bf
commit
098c1d8cc4
4 files changed
+35
-27
No files matched your search
+9
-9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user