Skip to content

Commit

Permalink
fix: clarity-repl resolve_link adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru authored and obycode committed Feb 10, 2022
1 parent ea59f03 commit f1e8b47
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/frontend/cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::HashMap;
use std::collections::{HashMap, BTreeSet};
use std::fs::{self, File};
use std::io::{prelude::*, BufReader, Read};
use std::path::PathBuf;
Expand Down Expand Up @@ -339,18 +339,12 @@ pub fn main() {
let settings = repl::SessionSettings::default();
let mut session = repl::Session::new(settings);

let rt = tokio::runtime::Builder::new_current_thread()
.enable_io()
.enable_time()
.max_blocking_threads(32)
.build()
.unwrap();

let res = rt.block_on(session.resolve_link(&repl::settings::InitialLink {
let mut resolved = BTreeSet::new();
let res = session.resolve_link(&repl::settings::InitialLink {
contract_id: fork_contract.contract_id.clone(),
stacks_node_addr: None,
cache: None,
}));
}, &mut resolved);
let contracts = res.unwrap();
let mut changes = vec![];
for (contract_id, code, deps) in contracts.into_iter() {
Expand Down

0 comments on commit f1e8b47

Please sign in to comment.