Skip to content

Commit

Permalink
chore: per review
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Aug 8, 2024
1 parent c08d903 commit b88a8ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/src/bin/greptime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ enum SubCommand {
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

fn main() -> Result<()> {
// Set the stack size to 8MB for the thread so it wouldn't crash on large stack usage in debug mode
// Set the stack size to 8MB for the thread so it wouldn't overflow on large stack usage in debug mode
// see https://github.com/GreptimeTeam/greptimedb/pull/4317
// and https://github.com/rust-lang/rust/issues/34283
let builder = std::thread::Builder::new().name("main_spawn".to_string());
Expand All @@ -83,11 +83,11 @@ fn main() -> Result<()> {
#[cfg(debug_assertions)]
let builder = builder.thread_stack_size(8 * 1024 * 1024);

return builder
builder
.enable_all()
.build()
.expect("Failed building the Runtime")
.block_on(body);
.block_on(body)
}
})
.context(SpawnThreadSnafu)?
Expand Down

0 comments on commit b88a8ea

Please sign in to comment.