mirror of
https://github.com/bytedance/g3.git
synced 2026-05-19 07:54:33 +00:00
g3tiles: get the correct worker number
This commit is contained in:
parent
df902e3903
commit
f7be40ddd5
1 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ impl OpensslHost {
|
|||
}
|
||||
|
||||
fn set_ssl_context(&mut self) -> anyhow::Result<()> {
|
||||
let ctx_count = g3_daemon::runtime::worker::worker_count().min(1);
|
||||
let ctx_count = g3_daemon::runtime::worker::worker_count().max(1);
|
||||
let mut ssl_context = Vec::with_capacity(ctx_count);
|
||||
for _ in 0..ctx_count {
|
||||
if let Some(ctx) = self.config.build_ssl_context(&self.session_cache)? {
|
||||
|
|
@ -308,7 +308,7 @@ impl OpensslHost {
|
|||
|
||||
#[cfg(feature = "vendored-tongsuo")]
|
||||
fn set_tlcp_context(&mut self) -> anyhow::Result<()> {
|
||||
let ctx_count = g3_daemon::runtime::worker::worker_count().min(1);
|
||||
let ctx_count = g3_daemon::runtime::worker::worker_count().max(1);
|
||||
let mut tlcp_context = Vec::with_capacity(ctx_count);
|
||||
for _ in 0..ctx_count {
|
||||
if let Some(ctx) = self.config.build_tlcp_context(&self.session_cache)? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue