Skip to content

Commit

Permalink
set a stack size for running docker2fl
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Oct 29, 2024
1 parent 0cc4119 commit 5ef1d84
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docker2fl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use bollard::auth::DockerCredentials;
use clap::{ArgAction, Parser};
use rfs::fungi;
use rfs::store::parse_router;
use tokio::runtime::Builder;
use uuid::Uuid;

mod docker2fl;
Expand Down Expand Up @@ -53,8 +54,16 @@ struct Options {
registry_token: Option<String>,
}

#[tokio::main]
async fn main() -> Result<()> {
fn main() -> Result<()> {
let rt = Builder::new_multi_thread()
.thread_stack_size(8 * 1024 * 1024)
.enable_all()
.build()
.unwrap();
rt.block_on(run())
}

async fn run() -> Result<()> {
let opts = Options::parse();

simple_logger::SimpleLogger::new()
Expand Down
2 changes: 1 addition & 1 deletion rfs/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use anyhow::{Context, Result};
use clap::{ArgAction, Args, Parser, Subcommand};

use rfs::fungi;
use rfs::store::{self, Router, Stores};
use rfs::store::{self};
use rfs::{cache, config};

mod fs;
Expand Down

0 comments on commit 5ef1d84

Please sign in to comment.