refactor(tvix): use composition & registry for from_addr
Change-Id: I3c94ecb5958294b5973c6fcdf5ee9c0d37fa54ad Reviewed-on: https://cl.tvl.fyi/c/depot/+/11976 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Autosubmit: yuka <yuka@yuka.dev>
This commit is contained in:
parent
79317be214
commit
168e4fda59
18 changed files with 316 additions and 229 deletions
|
|
@ -200,7 +200,7 @@ fn default_threads() -> usize {
|
|||
}
|
||||
|
||||
#[instrument(skip_all)]
|
||||
async fn run_cli(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
|
||||
async fn run_cli(cli: Cli) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
match cli.command {
|
||||
Commands::Daemon {
|
||||
listen_args,
|
||||
|
|
@ -538,7 +538,7 @@ async fn run_cli(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
|
|||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
let cli = Cli::parse();
|
||||
|
||||
let tracing_handle = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue