mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 13:25:03 +03:00
reset cache before work_swap
This commit is contained in:
parent
9774da7b64
commit
e7d76a3818
@ -450,6 +450,7 @@ fn work_swap(context: &mut Context, job: Noun, goof: Noun) {
|
|||||||
clear_interrupt();
|
clear_interrupt();
|
||||||
|
|
||||||
let stack = &mut context.nock_context.stack;
|
let stack = &mut context.nock_context.stack;
|
||||||
|
context.nock_context.cache = Hamt::<Noun>::new();
|
||||||
// crud ovo = [+(now) [%$ %arvo ~] [%crud goof ovo]]
|
// crud ovo = [+(now) [%$ %arvo ~] [%crud goof ovo]]
|
||||||
let job_cell = job.as_cell().expect("serf: work: job not a cell");
|
let job_cell = job.as_cell().expect("serf: work: job not a cell");
|
||||||
let job_now = job_cell.head().as_atom().expect("serf: work: now not atom");
|
let job_now = job_cell.head().as_atom().expect("serf: work: now not atom");
|
||||||
|
Loading…
Reference in New Issue
Block a user