Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set a stack size for running docker2fl #80

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading