Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
zhuxiujia committed Dec 13, 2023
1 parent aedfe31 commit 833f1eb
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mco-gen/src/gen_impl.rs
Original file line number Diff line number Diff line change
@@ -236,7 +236,7 @@ impl<A: Any> Gn<A> {
Generator { gen }
}

pub fn new_opt2<'a, T: Any, F>(size: usize, f: F,stack:Stack) -> Generator<'a, A, T>
pub fn new_opt_stack<'a, T: Any, F>( f: F,stack:Stack) -> Generator<'a, A, T>
where
F: FnOnce() -> T + Send + 'a,
{
2 changes: 1 addition & 1 deletion src/coroutine_impl.rs
Original file line number Diff line number Diff line change
@@ -324,7 +324,7 @@ impl Builder {

let mut co = CoroutineImpl {
worker_thread_id: None,
inner: Gn::new_opt2(stack_size, closure, Stack::new(2048)),
inner: Gn::new_opt_stack(closure, Stack::new(2048)),
reduce: None,
};

0 comments on commit 833f1eb

Please sign in to comment.